title: Parsing JSONObject having dynamic key
body: <p>I have following JSON as response from my server. At first, I thought, it was invalid JSON but after validating it, it seems to be correct:</p>
  
  <pre><code>JOSN: {
      "category": {
          "1": "World",
          "2": "Politics",
          "3": "Economy",
          "4": "Sports",
          "5": "Cricket",
          "6": "General",
          "7": "Business",
          "8": "Services",
          "9": "Law &amp; Order",
          "10": "Entertainment"
      }
  }
  </code></pre>
  
  <p>Validation: <img src="https://i.stack.imgur.com/JDImP.png" alt="JSON Validatiion"></p>
  
  <p>If it would have been JSONArray, I would have parsed it with this solution from SO: <a href="https://stackoverflow.com/questions/26314145/how-to-parse-a-json-without-key-in-android">How to parse a JSON without key in android?</a></p>
  
  <p>But how do I parse the JSON I have here?</p>
  
  <p>Any help appreciated.</p>