Is it possible to work with a previously unknown JSON structure?
I know this way:
Json json = new Json(); MyClass myJson = json.fromJson(MyClass.class, str); but for him it is necessary to know the JSON structure and create a class hierarchy, and what if the json file structure is not known in advance, can it be processed?
for example in JS, you can convert any json into an object and process its fields in a loop
UPDATE
talk about the complex structure:
{ "id": 1, "name": "my name", "options": { "desc":"text", "flags": [1,3,5], "object" : { "field1":"value", "field2":"value2", "field3":"value2" } } }