title: Trying to get data from web-service in java
body: <pre><code>[
      {
          "title": "ginger",
          "id": "38",
          "product_id": "17",
          "product_logo": "imagePath/Desert_0.jpg?itok=Uvm6nxpY",
          "product_logo_1": "imagePath/Desert_0.jpg?itok=6YHK_afq",
          "price": "$12.00"
      }
  ]
  </code></pre>
  
  <p>I'm working on a swing application in Java in which I need to fetch data from web-service</p>
  
  <p>I'm following <a href="http://www.mkyong.com/webservices/jax-rs/restfull-java-client-with-java-net-url/" rel="nofollow noreferrer">this</a> example to get data from web service and it store web service data in String.</p>
  
  <p>But I want to convert this string to json and follow some example one of them is <a href="https://stackoverflow.com/questions/15609306/convert-string-to-json-array">this</a> and <a href="https://stackoverflow.com/questions/18213104/convert-string-to-jsonarray">this</a></p>
  
  <p>so I just want to know what I'm doing wrong here, or this is the right way to use this, because I don't know how to use web services in Java...</p>