1

I am new to JSON and trying to convert an object to JSON , it is adding an "__hashCodeCalc":false to it. I don't know what that means. how can I remove it before sending this JSON object ?

System.out.println("Person JSON element " + new Gson().toJson(person));
hata
  • 11,633
  • 6
  • 46
  • 69
nilesh
  • 21
  • 5
  • You may find the answers here useful: http://stackoverflow.com/questions/4802887/gson-how-to-exclude-specific-fields-from-serialization-without-annotations – Jason Holmberg Sep 21 '15 at 17:32

0 Answers0