The function to convert JSON string to an Array

The function to convert JSON string to an Array in Javascript :-

var my_array = eval('(' + json_string + ')');
That's plain JS. Or in prototype you can do ..
var my_array = json_string.evalJSON();

No comments

Powered by Blogger.