PDA

View Full Version : Valid JSON data



danvega
22 Jul 2010, 8:01 AM
I have some data that I am getting from an outside service (I have no control over). This is just a sample but everywhere in the data special characters are being escaped by a \



{
"id":459,
"name":"Keynote: Community - You\'re Never Alone"
}


If I run through a JSON validation it comes back with an error.
http://jsonlint.com/

Is there anyway to escape this? Again I have no control over the data so I need to find a local fix

evant
22 Jul 2010, 2:49 PM
As you said, it's not valid JSON. Surely whoever is providing the data source would correct it so people could use it...