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