title: How to Convert a JSON Object to JSON Array using GSON in Kotlin in Android
body: <p>Hi I am new to Kotlin and Android I want to parse an <code>JSONObject</code> and Convert it into Array ,
  Here is my sample JSON looks like</p>
  <pre><code>{
          &quot;USDAED&quot;: 3.672982,
          &quot;USDAFN&quot;: 57.8936,
          &quot;USDALL&quot;: 126.1652,
          &quot;USDAMD&quot;: 475.306,
          &quot;USDANG&quot;: 1.78952,
          &quot;USDAOA&quot;: 109.216875,
          &quot;USDARS&quot;: 8.901966,
          &quot;USDAUD&quot;: 1.269072,
          &quot;USDAWG&quot;: 1.792375,
          &quot;USDAZN&quot;: 1.04945,
          &quot;USDBAM&quot;: 1.757305}
  </code></pre>
  <p>I want to store JSONObject in a HashMap .Or How to Iterate over the JSON Object keys in Kotlin.</p>
  <p>I am using GSON.</p>
  <p>Please don't vote if its easy please provide the link.</p>