isJSON() is reporting false. If I copy and paste the JSON into http://jsonlint.com/ it shows me where the issue is. The problem is in the description where is has an unneeded carriage return. The problem is no matter what I do this JSON I can’t remove it and I don’t control the system that the JSON is coming from to fix the problem at the source.
I’ve tried stuff like
replace(LOCAL.result.filecontent,’#asc(13)#’,’’,‘ALL’)
and
replace(LOCAL.result.filecontent’\n’,’’,‘ALL’);
with no success. I can’t be the first person so see bad JSON and have to deal with it.
Here is a clip of my JSON.
{
“bugs”: [
{
“id”: 694301000000069000,
“key”: “16”,
“project”: {
“id”: 694301000000014300
},
“flag”: “Internal”,
“title”: “Enrollment issue with programs that refugee enrollment programs”,
“description”: "need a design change to handle enrollment by refugee
",
“reporter_id”: “35597854”,
“reported_person”: “Jonathan Perret”,
“created_time”: “06-01-2014”,
“created_time_format”: “06-01-2014 12:59 AM”,
“created_time_long”: 1401631183000,
“assignee_name”: “Not Assigned”,
“classification”: {
“id”: 694301000000016000,
“type”: “OtherBug”
},
“severity”: {
“id”: 694301000000007000,
“type”: “Major”
},
“status”: {
“id”: 694301000000007000,
“type”: “Closed”
},
“closed”: true,
“reproducible”: {
“id”: 694301000000016000,
“type”: “Always”
},
“module”: {
“id”: 694301000000016100,
“name”: “RMS”
},
“link”: {
“self”: {
“url”: “https://projectsapi.zoho.com/restapi/portal/37158570/projects/694301000000014351/bugs/694301000000069001/”
},
“timesheet”: {
“url”: “https://projectsapi.zoho.com/restapi/portal/37158570/projects/694301000000014351/bugs/694301000000069001/logs/”
}
}
}
]
}