I\'m trying to parse a string from JSON and turn those elements into an array in Javascript. Here\'s the code.
var data = \"{\"fname\":\"Todd\",\"lname
This is built into most modern browser JavaScript engines. Depending on what environment you are targeting you can simply do:
var data = JSON.parse(jsonString);
day0 = data.day0.split(",");
It's pretty simple. If you are targeting environments that don't have access to a built in JSON object you should try this JSON project.