I am trying to parse JSON data in my Rails 3 application with
JSON.parse
737: unexpected token at
'{\"0\":{\"class\":\"window\",\"text\":\"Testing\",\"style\":\"position:
absolute; top: 8px; left: 8px; width: 560px; height: 290px; z-index:
0; \"}
Well, we can only answer based on the part of the JSON you showed us, but it has two problems:
"
) are escaped; they don't need to be unless they are used in a double-qoted string, which it appears they are not.}
).Otherwise it passes based on http://www.jsonlint.com/.