i am working on parsing a JSONobject. so the thing which i am trying to do is to parse the object using javascript from json and to assign it to an array. any help or suggestions. Thank in advance. here is my code.
my javascript code to parse.
name = JSON.parse(cooldrinkname);
and one of my json object code is.
{
"shopID" : "erer2123",
"shoname" : "saravana store",
"cooldrinkname" : "pepsi",
"cost" : "10"
},
so from the above code. i am trying to extract the cooldrink name and trying to assing in a array variable name. Thanks in advance.