title: Get particular value from json array in java
body: <p>Code is written in java</p>
  
  <pre><code>JSONArray resultArray = (JSONArray)resultObject;
  String str = (resultArray.get(0).toString())
  </code></pre>
  
  <p>Now I have a string which is as follows</p>
  
  <pre><code>{
      "styleId": "2276730",
      "price": "$199.95",
      "originalPrice": "$199.95",
      "colorId": "401",
      "productName": "Mutiny",
      "productId": "8149427",
      "percentOff": "0%"
  },
  </code></pre>
  
  <p>I want to have the value of price for each such array</p>
  
  <p>I am a newbie to JSON. Can anyone help me with this?</p>