jsonp-api
jsonp-api copied to clipboard
Jakarta JSON Processing
The methods in Json use `JsonProvider.provider()` and this **re-creates the JsonProvider on each execution**. The javadoc for `JsonProvider.provider()` suggests that the caller should cache the resulting `JsonProvider` and `jakarta.json.Json` does...
Reference: https://en.wikipedia.org/wiki/JSON_streaming#Line-delimited_JSON
Related PR: https://github.com/eclipse-ee4j/jsonp/issues/344 Related PR in Parsson - https://github.com/eclipse-ee4j/parsson/pull/47 # Summary ### Create a JsonGenerator.Key ```java JsonProvider provider = ...; JsonGenerator.Key firstNameKey = provider.createGeneratorKey("firstName"); ``` ### Use a JsonGenerator.Key ```java...
Reference: https://en.wikipedia.org/wiki/JSON_streaming#Line-delimited_JSON When looking at JsonGenerator API I do not see a mechanism to support `x-json-stream` type output using the "Line delimited JSON" format. Is there a way to produce...
https://github.com/eclipse-ee4j/jsonp/issues/213
I'm missing a set of methods in both JsonGenerator and JsonObjectBuilder to fluently deal with null values. E.g. if you look at JsonObjectBuilder.add [1] then you'll notice that it throws...
Relates to https://github.com/eclipse-ee4j/jsonp/issues/209
https://github.com/eclipse-ee4j/jsonp/issues/213 This other is also related: https://github.com/eclipse-ee4j/jsonp/issues/97 but we are not serializing null
Json-P uses this to (de)serialize Double-values to and from Json: `JsonGenerator write(double value);` Please provide the ability to (de)serialize "NaN", "+Infinity" and "-Infinity" with any type of Numbers (Double, etc)...