Comment #3 on issue 1939 by [email protected]: JSON encoding bug http://code.google.com/p/v8/issues/detail?id=1939
Actually `json_str.replace(/\u2028/g, '\\u2028').replace(/\u2029/g, '\\u2029');` seems the only way to ensure a valid object literal.
It would be nice to have it into JSON.stringify imho. -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
