Can someone pleas explain to me why json which contains a string with double quotes will break $.parseJSON?
This works:
[{"type":"message","content":{"user":"tomasa", "time":"1321722536", "text":"asdasdasd"}}]
This also works:
[{"type":"message","content":{"user":"tomasa", "time":"1321723267", "text":"""}}]
However this will cause $.jsonParse to not return anything (I am assuming becuase it is a malformed json string:
[{"user":"tomasa", "time":"1321723278", "text":""""}}]
You have an extra
}at the end.You should run troublesome JSON markup through http://jsonlint.com/