title: Get Key and values from JSONObject
body: <p>I am trying to extract Key and values from my JSONObject. But i am not able to do that. Here is the JSON:</p>
  
  <pre><code>[{"id":["5"]},{"Tech":["Java"]}]
  </code></pre>
  
  <p>It is a String initially. I have converted that to JSONObject using :</p>
  
  <pre><code>JSONObject jsonObj = new JSONObject("[{"id":["5"]},{"Tech":["Java"]}]");
  </code></pre>
  
  <p>Then i am trying to get the key and value by:</p>
  
  <pre><code>jsonObj.getString("id");
  </code></pre>
  
  <p>But its giving me null. Can anyone help me out here?</p>