I have been trying to ajax a JSON response containing apostrophe through DWR, in a java method which is returning the response as a java map. The response is printing correctly in the server without any escape character(\), however when I try to ajax it via DWR3 it returns the JSON including the escape character(\).
The returned response is not a valid JSON response after the DWR call which is as below,
{
"reply":{
"airlines":[
{
"airlineDetails":{
"airportCode":"WIC",
"name":"Wick John O\'Groats"
},
"cityDetails":{
"code":"WIC",
"name":"Wick"
},
"countryDetails":{
"code":"GB",
"name":"United Kingdom"
}
}
]
}
}