You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JsonObjectobj = newJsonObject();
JsonPrimitivep = newJsonPrimitive(42);
obj.put("thing", p, "this is a multiline\ncomment");
is then serialized to:
{/* this is a multiline *//* comment */"thing": 42}
Then deserializing it back into json object keeps only the last line of the comment.
The text was updated successfully, but these errors were encountered:
falkreon
changed the title
Some comments are lost after deserializing output of serializing multiline comments with JsonGrammar.builder().withComments(true).printWhitespace(false).build()
Multiline comments sometimes lost in serialization/deserialization cycles
Feb 3, 2020
on the current staging version. I'll run a few more tests to make sure the multi-comment text deserializes correctly, and save those tests in case of regressions in the future.
Json object constructed like this:
is then serialized to:
Then deserializing it back into json object keeps only the last line of the comment.
The text was updated successfully, but these errors were encountered: