Community
Participate
Working Groups
org.eclipse.jetty.util.ajax.JSON produces invalid JSON for strings containing the null characeter U+0000. It puts a byte with numeric value 0 in the string, but this is not allowed in JSON according to RFC 4627. The resulting JSON is not compatible with other parsers, for example WebKit's JSON.parse() will barf on it.
Created attachment 172995 [details] test case This Groovy script demonstrates the bug and compares with the Jackson generator which quotes the null byte correctly.
fixed in r2057. will be in 7.1.5. thanks for the report.
the fix will propagate to 8 soon after the 7.1.5 release