December 18th, 2012, 07:54 AM
Comparing JSON object against JAVA object for equality
I have a JAVA object. Its a very complex object with lots of nested hierarchies with a total of 50 classes.
Applying straight away the JSON or Jackson library to the JAVA class has not given successful results so I have made the
custom converted and successfully converted the java object to json(using JSON and Jackson).
How can I compare my generated JSON object with the JAVA object for equality and ensure that no properties etc are missed?
Primary email: firstname.lastname@example.org
December 18th, 2012, 05:15 PM
If you're looking for some automated way to compare an arbitrary Java object and JSON object I don't think you're going to find one.