0

I want to parse a JSON string which is quite complex. It has somewhat following format

           { A:{ list of around 20 objects},B:1}

These objects inside A again contains some other objects or the datatypes supported by JSON. I have checked couple of examples and documentations.

I found this example to be helpful Converting JSON to Java but looks like I need to know each and every element of the objects contained. I can write a similar code but before spending so much effort I wanted to check if there is other libraries out there which can do automatic parsing and By just giving the key field I can get those contents.

Community
  • 1
  • 1
Judy
  • 1,533
  • 9
  • 27
  • 41

1 Answers1

2

Jackson should be able to handle the structure with no problem. You do not need to know the exact structure of the JSON. You can just iterate over all of the objects and inter-objects.