I am trying to parse a JSON string comprised of numerical values, but I keep getting SyntaxError: Unexpected number.
When I remove the preceding 0's it works, so I can get rid of the 0's easily enough, but I need the values formatted that way for display purposes, is there a simple way for me to parse this into an array of strings instead of an array of numbers?
Also, what would be the simplest way to remove all preceding 0's in the string? I am assuming a regex would be best? But any other suggestions are welcome.
JSON.parse('[26,27,28,29,30,31,01,02,03,04,05,06,07,08,09]');