JSON object escape sequence (double quotes) problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alex Andrew
    New Member
    • Mar 2011
    • 1

    JSON object escape sequence (double quotes) problem

    Hai I am sending a JSON object from a servlet to JSP using AJAX. My JSON object contains a String value inside. and that string contains double quotes within that. My JSON does not parse it. I get error.
    {"diagnosis" :[{"NAME":"new_di agnosis_1 \[1020\]:2000000006001" },{"NAME":"new_ diagnosis_2 \[1021\]:2000000006003" },{"NAME":"new_ "dise"sed \[1023\]:2000000009001" },{"NAME":"new_ d"ise"sef \[1024\]:2000000009003" }]}

    note new_"dise"sed and new_d"ise"sef

    I need a solution.

    Thanks in Advance.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    that’s got something to do with the code, that creates that JSON.

    I need vacation.

    Comment

    Working...