I am trying to compare 2 JSON API responses in terms of structure, and ignoring the data.
Tried converting the JSON responses into Objects using Jackson implementing the following code, but it does not give me the expected results
MyObject ob = new ObjectMapper().readValue(jsonOutput, MyObject.class);
What could possibly be the best way to compare 2 JSON API responses for structure and ignoring the data.