When a string in the JSON-LD document contains escaped double-quotes, like in "Here is a \"string\n", then the double quotes are no longer escaped in the NQuads serialization.
I fixed it in https://github.com/lanthaler/JsonLD/blob/master/NQuads.php by changing this line
Hi Markus,
When a string in the JSON-LD document contains escaped double-quotes, like in
"Here is a \"string\n"
, then the double quotes are no longer escaped in the NQuads serialization. I fixed it in https://github.com/lanthaler/JsonLD/blob/master/NQuads.php by changing this lineinto
I did not test other serializations but it is likely that the same issue occurs.
Regards, Franck.