jsonata-java
jsonata-java copied to clipboard
$string must escape special chars in field names
Input
$string({"te\nst":"te\nst"})
Output
{"te
st":"te\nst"}
Expected
{"te\nst":"te\nst"}
re-applying $eval() to the result of $string manages to parse the illegal JSON this expression causes an error though:
{"te\nst":"te\nst"} ~> |$|{}| Expected valid string character at 1:5