If you try and convert RDF/XML with that has a string with a single
quote such as "Dr. Weber's", the JSObject will escape the single
quote.  This seems accurate, however, because the JSON is double quote
delimited the resulting JSON is reject by parsers such as http://jsonlint.com/,
or gadgets.json.parse in Apache Shindig. A fix is to un-escape the
single quote using replaceAll:
StringEscapeUtils.escapeJavaScript(value).replaceAll("\\\\'", "'")


You can test by using Bable to convert the following RDF/XML
http://connects.catalyst.harvard.edu/profiles/profile/person/32213/viewas/rdf


Or maybe I'm missing something.
Eric

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to