title: How to deserialize this dynamic valued JSON?
body: <p>I want to deserialize the following JSON (in the original there are about 100 <code>Exchange</code>s with dynamic values):</p>
  
  <pre><code>{
    "Exchange1": {
      "EUR": [
        "CNY",
        "USD"
      ],
      "INR": [
        "USD",
        "CNY"
      ]
    },
    "Exchange2": {
      "BRL": [
        "EUR",
        "USD",
        "INR"
      ],
      "JPY": [
        "USD",
        "EUR",
        "CNY"
      ]
    },
    ....
  }
  </code></pre>
  
  <p>I am using <a href="http://www.jsonschema2pojo.org/" rel="nofollow noreferrer">http://www.jsonschema2pojo.org/</a> but it is generating a Java class taking literal values ("Exchange1", "EUR", etc) while I need to iterate this no matter what is the dynamic String value:</p>
  
  <p><a href="https://i.stack.imgur.com/BHKlP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BHKlP.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>How can I describe this JSON with Java?</p>