Q: How to read in attribute value from json given in attribute name I am attempting to read in the following json using the jackson java library:
"WeirdData": {
  "07f072ea-80c9-4fac-8235-2e1e6576ce2e": "crapapple"
},

How should the model look like to be able to be able to read above json into a class, can this even be done? 
class SponsorEntityIdsData {
  @JsonProperty("GUID")
  var id: String? = null
  var name: String? = null
}


A: Try to use HashMap Collection in your java pojo class.
You will get id (key) by using WeirdData.keySet() and 
by using key you will get name.
class WeirdData {
 HashMap<String,String> WeirdData;
}

