Jquery convert string of one type to string array.....
- by chandru_cp
Consider a string which is
{"Table" : [{"Bird" : "Peacock"},
{"Bird" : "Crow"}]}
to this ["Peacock", "Crow"] in jquery... Is this possible?
EDIT:
I am doing this but didnt work...
$(document).ready(function() {
var obj = JSON.parse('{"Table" : [{"Bird" : "Peacock"},{"Bird" : "Crow"}]}');
myarray = [];
…