I have a Json structure like so:
{
"Pojo" : {
"properties" : {
"key0" : "value0",
"key1" : "value1"
}
}
}
I want my final result to look something like this:
public class Pojo {
public Map<String, String> properties;
}
but instead I get something like this:
public class Pojo {
public Properties properties;
}
public class Properties {
public String key0;
public String key1;
}
Right now all I am doing for parsing the Json is this:
new Gson().fromJson(result, Pojo.class)
Thoughts on what I would need to do to get this set up correctly? I do not have the ability to change the Json return object's structure.