title: How can i get information from JSON dictionary in java
body: <p>I have a dictionary on a website in form of json which looks for example like this:</p>
  
  <pre><code>"types":[{
      "id":"0",
      "name":"value1"
      },{
      "id":"1",
      "name":"value2"
      },{
      "id":"2",
      "name":"value3"
      }]
  </code></pre>
  
  <p>I cant find any useful example of a method that could help me retrieve that information and put it in, for example, a string array.
  Maybe anyone of you come across same problem please help!</p>
  
  <p>P.S. I tried method like <a href="https://stackoverflow.com/questions/4308554/simplest-way-to-read-json-from-a-url-in-java">simplest way to read json from a URL in java</a> with no success.</p>