My json text is of the form ["string1" , "string2", ...].
How do I convert this to a javascript array and display the values?
My json text is of the form ["string1" , "string2", ...]. How do I convert this to a javascript array and display the values?
| |||||
feedback
|
Using JSON library https://raw.github.com/douglascrockford/JSON-js/master/json2.js
Or using jQuery
Or using
Then array[0] , array[1] ... | |||
feedback
|
This is an array, if you open your developer console and try:
| |||
feedback
|
| |||
feedback
|