How to compare two json documents? The first json object is {id=20:F4:1B:91:AF:73}
and the second one is also having the same list of such json object so how to compare this.
Asked
Active
Viewed 65 times
1

Kostas Mitsarakis
- 4,772
- 3
- 23
- 37

Lalit Kushwah
- 3,861
- 5
- 25
- 40
-
7[Compare two JSON objects in Java](http://stackoverflow.com/questions/2253750/compare-two-json-objects-in-java) ? – Perdomoff Nov 27 '15 at 16:45
-
1Not that much difficult. What you have tried so far ? – Suresh Atta Nov 27 '15 at 16:45
-
Sorry for not elaborating it,the problem is when i retreiving json object from solr the SolrDocument is coming in infront of my json object,this text is creating problem SolrDocument{id=20:F4:1B:91:AF:73} because of this i cann't convert it into string .If you know somthing it will be a great help for me. – Lalit Kushwah Nov 27 '15 at 18:06
-
A JSONObject text must begin with '{' at 1 [character 2 line 1] at org.json.JSONTokener.syntaxError(JSONTokener.java:433) This error is commig when i am paasing my json object in JSONObject constructor. – Lalit Kushwah Nov 27 '15 at 18:29
-
i solved it thanks for replying – Lalit Kushwah Nov 27 '15 at 18:30