Is there any reasons why PHP\'s json_encode function does not escape all JSON control characters in a string?
For example let\'s take a string which spans two rows a
D'oh - you need to double-encode: JSON.parse is expecting a string of course: