-2

My json is : {"language":"English (US)","locale":"en_US","value":"aa"aa"}. Getting error the json to java object for value , where value is : "aa"aa" .

Please help. Thanks in advance.

Smile
  • 3,832
  • 3
  • 25
  • 39
pampa
  • 153
  • 1
  • 3
  • 11

1 Answers1

1

You input JSON is wrong. If the value contains " then you need to add escape sequence before the " like this:

{
   "language":"English (US)",
   "locale":"en_US",
   "value":"aa\"aa"
}
Smile
  • 3,832
  • 3
  • 25
  • 39
Alok Singh
  • 488
  • 2
  • 6