I have an external parsed List type which is a json array, indeed this call
list.toString()
gives me this:
[{name=prop1, content=<something>},{name=prop2, content=<something>}]
The content could be anything, an array, a string, an int... So I'd like to map that json array to something like
HashMap<String,Object> converted;
This would allow me to do this:
converted.get("prop1"); //this will give me the <something>
how could I do that?
[]and{}, doesn't mean it is JSON. Look into the JSON format.