I need to read an arraylist with JSON simple in java. I got the code but what should I write to make it read the tree "example-array" that is a sub of the main tree "Example".
Here's the json code:
{
"Example": {
"example-array": [
"something"
}
What I tried is reading it like
JSONArray example = (JSONArray) jsonObject.get("Example.example-array");
But that doesn't work. Help please.