crack icon indicating copy to clipboard operation
crack copied to clipboard

Can't parse the following json

Open ricn opened this issue 14 years ago • 2 comments

{ "name" : "cm:content", "isAspect" : false, "title" : "Content", "description" : "Base Content Object", "parent" : { "name" : "cm:cmobject", "title" : "cmobject", "url" : "/api/classes/cm_cmobject" }, "defaultValues" : { }, "defaultAspects" : { "sys:referenceable" : { "name" : "sys:referenceable", "title" : "Referenceable", "url" : "/api/classes/cm_content/property/sys_referenceable" }, "cm:auditable" : { "name" : "cm:auditable", "title" : "Auditable", "url" : "/api/classes/cm_content/property/cm_auditable" } }, "properties" : { "cm:name": { "name" : "cm:name", "title" : "Name", "url" : "/api/classes/cm_content/property/cm_name" }, "cm:content": { "name" : "cm:content", "title" : "Content", "url" : "/api/classes/cm_content/property/cm_content" } },
"associations" : { },
"childassociations" : { },
"url" : "/api/classes/cm_content"
}

Only gets a Invalid JSON string (Crack::ParseError). The json should be valid: http://www.jsonlint.com/

Any ideas?

ricn avatar Aug 23 '10 22:08 ricn

+1 I'm interested as well

raid5 avatar Jan 26 '11 06:01 raid5

make that +2, failing using the Digg Search JSON API, which is formatted the same as above... works for Twitter Search JSON API which has no formatting. Rails/ActiveSupport 3.0.4, Ruby 1.9.2

nutheory avatar Feb 16 '11 08:02 nutheory

This seems to be working on current master. Feel free to reopen the issue, if you run into a problem again

kiskoza avatar Jan 26 '24 17:01 kiskoza