title: parse json object and assign it to an array
body: <p>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. </p>
  
  <p>my javascript code to parse.</p>
  
  <pre><code>  name = JSON.parse(cooldrinkname);
  </code></pre>
  
  <p>and one of my json object code is.</p>
  
  <pre><code>       {
              "shopID" : "erer2123",
              "shoname" : "saravana store",
              "cooldrinkname" : "pepsi",
              "cost" : "10"
          },
  </code></pre>
  
  <p>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.</p>