ucm service result as Json
I have an issue using a ucm service via ajax. I request the service with IsJson=1 and do the following:
jQuery.ajax({
url: "<$HttpCgiPath$>",
type: "POST",
dataType: 'json',
contentType: 'UTF-8',
cache: false,
beforeSend: function(xhr) {
...
},
data: idcServiceAndParam,
success: function(jdata) {
... },
error: function(XMLHttpRequest, textStatus, errorThrown){
...
}
The responds data represents a result from database.
Everything works fine, but if there is a field in database which has a single qoute in it like a french street name (e.g."Rue de i'lle Monsin 85") I get one backslash in front of the single quote and the Json result is not valid (e.g."