json
json copied to clipboard
A Java JSON Library intended to be easy to learn and simple to teach
JsonDecodeException currently always includes the json in the exception message. This is nice for the current target audience of learners, but there should be a sanctioned approach to suppress that...
Currently the following test files that should be rejected are accepted. * n_string_unescaped_newline.json * n_string_unescaped_tab.json * n_string_unescaped_ctrl_char.json Its not horrible imo since its slightly more tolerant and won't reject valid...
Technically speaking, we could end up with an incorrect "path" recorded in a JsonDecodeException if someone escapes the decoder mechanism. For instance. ```java Json j = Json.readString(""" { "a": [...
Right now, even though a JsonDecodingException can be caused by a tree of Failure, AtIndex, AtField, and OneOf (s) I do not propagate a cause to the uppermost exception. The...
I made a PR to update the json benchmark repo to support this library awhile ago. I should finish out that PR and link to benchmark results where appropriate.
Should 1. Add jacoco to build 2. Make jacoco coverage surface in the repo and in PRs
There is some hacky code in JsonWriter for writing out instances of Json. ```java static { WRITERS = new IdentityHashMap(); WRITERS.put(JsonNull.class, (__, out, ___) -> out.append("null")); WRITERS.put(JsonTrue.class, (__, out, ___)...
Right now the `JsonGenerator` interface does not have any functional implementation. One should be written and made available on the `JsonGenerator` interface