Oracle WebCenter Content (MOSC)

MOSC Banner

ucm service result as Json

edited Aug 12, 2010 1:17AM in Oracle WebCenter Content (MOSC) 1 commentAnswered
 Hello,

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."

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center