title: extracting data from json string
body: <p>I am new to using javascript as well as json. I need to extract certain sections from json for processing the data. </p>
  
  <pre><code>{
    "status": "SUCCESS",
    "status_message": "blah blah blah",
    "pri_tag": [
        {
            "tag_id": 1,
            "name": "Tag1"
        },
        {
            "tag_id": 2,
            "name": "Tag2"
        },
        {
            "tag_id": 3,
            "name": "Tag3"
        },
        {
            "tag_id": 4,
            "name": "Tag4"
        }
    ]
  }
  </code></pre>
  
  <p>From the above json message I need to extract pri_tag section so that the extracted json should look like below:</p>
  
  <pre><code>[
    {name:'Tag1', tag_id:1},
    {name:'Tag2', tag_id:2},
    {name:'Tag3', tag_id:3},
    {name:'Tag4', tag_id:4},
    {name:'Tag5', tag_id:5},
    {name:'Tag6', tag_id:6}
  ];
  </code></pre>
  
  <p>How to get this done using javascript? Please help me. Thanks in advance.</p>
  
  <p>Thanks friends. I was able to get this working. Thanks once again.</p>