title: How do I get differences between two json objects using GSON?
body: <p>I used this code to compare two JSON object using Gson in Android:</p>
  
  <pre><code>String json1 = "{\"name\": \"ABC\", \"city\": \"XYZ\"}";
  String json2 = "{\"city\": \"XYZ\", \"name\": \"ABC\"}";
  
  JsonParser parser = new JsonParser();
  JsonElement t1 = parser.parse(json1);
  JsonElement t2 = parser.parse(json2);
  
  boolean match = t2.equals(t1);
  </code></pre>
  
  <p>Is there any way two get the <em>differences</em> between two objects using Gson in a JSON format?</p>