Uses of Interface
jakarta.json.stream.JsonGenerator
Package
Description
Provides an object model API to process JSON.
Defines serializer depending classes.
Service Provider Interface (SPI) to plug in implementations for
JSON processing objects.
Provides a streaming API to parse and generate
JSON.
-
Uses of JsonGenerator in jakarta.json
Modifier and TypeMethodDescriptionstatic JsonGenerator
Json.createGenerator
(OutputStream out) Creates a JSON generator for writing JSON to a byte stream.static JsonGenerator
Json.createGenerator
(Writer writer) Creates a JSON generator for writing JSON to a character stream. -
Uses of JsonGenerator in jakarta.json.bind.serializer
Modifier and TypeMethodDescriptionvoid
JsonbSerializer.serialize
(T obj, JsonGenerator generator, SerializationContext ctx) Serializes object into JSON stream.<T> void
SerializationContext.serialize
(String key, T object, JsonGenerator generator) Serializes arbitrary object to JSON, using currentJsonGenerator
instance.<T> void
SerializationContext.serialize
(T object, JsonGenerator generator) Serializes arbitrary object to JSON, using currentJsonGenerator
instance. -
Uses of JsonGenerator in jakarta.json.spi
Modifier and TypeMethodDescriptionabstract JsonGenerator
JsonProvider.createGenerator
(OutputStream out) Creates a JSON generator for writing JSON text to a byte stream.abstract JsonGenerator
JsonProvider.createGenerator
(Writer writer) Creates a JSON generator for writing JSON text to a character stream. -
Uses of JsonGenerator in jakarta.json.stream
Modifier and TypeMethodDescriptionJsonGeneratorFactory.createGenerator
(OutputStream out) Creates a JSON generator to write JSON text to a byte stream.JsonGeneratorFactory.createGenerator
(OutputStream out, Charset charset) Creates a JSON generator to write JSON text to a byte stream.JsonGeneratorFactory.createGenerator
(Writer writer) Creates a JSON generator to write JSON text to a character stream.JsonGenerator.write
(boolean value) Writes a JSON true or false value within the current array, field or root context.JsonGenerator.write
(double value) Writes the specified value as a JSON number value within the current array, field or root context.JsonGenerator.write
(int value) Writes the specified value as a JSON number value within the current array, field or root context.JsonGenerator.write
(long value) Writes the specified value as a JSON number value within the current array, field or root context.Writes the specified value as a JSON value within the current array, field or root context.Writes the specified value as a JSON string value within the current array, field or root context.Writes a JSON name/boolean value pair in the current object context.Writes a JSON name/number value pair in the current object context.Writes a JSON name/number value pair in the current object context.Writes a JSON name/number value pair in the current object context.Writes a JSON name/value pair in the current object context.Writes a JSON name/string value pair in the current object context.JsonGenerator.write
(String name, BigDecimal value) Writes a JSON name/number value pair in the current object context.JsonGenerator.write
(String name, BigInteger value) Writes a JSON name/number value pair in the current object context.JsonGenerator.write
(BigDecimal value) Writes the specified value as a JSON number value within the current array, field or root context.JsonGenerator.write
(BigInteger value) Writes the specified value as a JSON number value within the current array, field or root context.JsonGenerator.writeEnd()
Writes the end of the current context.Writes the JSON name with a colon.JsonGenerator.writeNull()
Writes a JSON null value within the current array, field or root context.Writes a JSON name/null value pair in an current object context.JsonGenerator.writeStartArray()
Writes the JSON start array character.JsonGenerator.writeStartArray
(String name) Writes the JSON name/start array character pair with in the current object context.JsonGenerator.writeStartObject()
Writes the JSON start object character.JsonGenerator.writeStartObject
(String name) Writes the JSON name/start object character pair in the current object context.