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
I don't fully understand how var_export works, so I will update if I run into trouble, but this seems to be working for me: