Uses of Interface
io.helidon.json.JsonGenerator
Packages that use JsonGenerator
Package
Description
Helidon JSON Processor.
Helidon JSON Binding.
Helidon implementation of the
Jackson Smile binary JSON specification.
-
Uses of JsonGenerator in io.helidon.json
Classes in io.helidon.json that implement JsonGeneratorModifier and TypeClassDescriptionclassBase implementation ofJsonGeneratorwith shared structure and state handling.Methods in io.helidon.json that return JsonGeneratorModifier and TypeMethodDescriptionstatic JsonGeneratorJsonGenerator.create(OutputStream outputStream) Create aJsonGeneratorinstance to write to the providedOutputStream.static JsonGeneratorCreate aJsonGeneratorinstance to write to the providedWriter.JsonGenerator.write(boolean value) Write a boolean value.JsonGenerator.write(byte value) Write a byte value.JsonGenerator.write(char value) Write a char value.JsonGenerator.write(double value) Write a double value.JsonGenerator.write(float value) Write a float value.JsonGenerator.write(int value) Write an int value.JsonGenerator.write(long value) Write a long value.JsonGenerator.write(short value) Write a short value.default JsonGeneratorWrite a key-value pair with a boolean value.default JsonGeneratorWrite a key-value pair with a char value.default JsonGeneratorWrite a key-value pair with a double value.default JsonGeneratorWrite a key-value pair with a float value.default JsonGeneratorWrite a key-value pair with an int value.default JsonGeneratorWrite a key-value pair with a long value.default JsonGeneratorWrite a key-value pair with a JsonValue.default JsonGeneratorWrite a key-value pair with a string value.default JsonGeneratorJsonGenerator.write(JsonKey key, BigDecimal value) Write a key-value pair with aBigDecimalvalue.default JsonGeneratorJsonGenerator.write(JsonKey key, BigInteger value) Write a key-value pair with aBigIntegervalue.Write a JsonValue.Write a string value.Write a key-value pair with a boolean value.Write a key-value pair with a char value.Write a key-value pair with a double value.Write a key-value pair with a float value.Write a key-value pair with an int value.Write a key-value pair with a long value.Write a key-value pair with a JsonValue.Write a key-value pair with a string value.JsonGenerator.write(String key, BigDecimal value) Write a key-value pair with aBigDecimalvalue.JsonGenerator.write(String key, BigInteger value) Write a key-value pair with aBigIntegervalue.JsonGenerator.write(BigDecimal value) Write aBigDecimalvalue.JsonGenerator.write(BigInteger value) Write aBigIntegervalue.JsonGeneratorBase.write(boolean value) JsonGeneratorBase.write(byte value) JsonGeneratorBase.write(char value) JsonGeneratorBase.write(double value) JsonGeneratorBase.write(float value) JsonGeneratorBase.write(int value) JsonGeneratorBase.write(long value) JsonGeneratorBase.write(short value) JsonGeneratorBase.write(JsonKey key, BigDecimal value) JsonGeneratorBase.write(JsonKey key, BigInteger value) JsonGeneratorBase.write(String key, BigDecimal value) JsonGeneratorBase.write(String key, BigInteger value) JsonGeneratorBase.write(BigDecimal value) JsonGeneratorBase.write(BigInteger value) JsonGenerator.writeArrayEnd()Write the end of a JSON array.JsonGeneratorBase.writeArrayEnd()JsonGenerator.writeArrayStart()Write the start of a JSON array.JsonGeneratorBase.writeArrayStart()JsonGenerator.writeBinary(byte[] value) Write a value in a binary format.default JsonGeneratorJsonGenerator.writeBinary(JsonKey key, byte[] value) Write a key-value pair with a value in a binary format.JsonGenerator.writeBinary(String key, byte[] value) Write a key-value pair with a value in a binary format.JsonGeneratorBase.writeBinary(byte[] value) JsonGeneratorBase.writeBinary(JsonKey key, byte[] value) JsonGeneratorBase.writeBinary(String key, byte[] value) default JsonGeneratorWrite a key value to the output stream.Write a key value to the output stream.JsonGenerator.writeNull()Write a null value.JsonGeneratorBase.writeNull()JsonGenerator.writeObjectEnd()Write the end of a JSON object.JsonGeneratorBase.writeObjectEnd()JsonGenerator.writeObjectStart()Write the start of a JSON object.JsonGeneratorBase.writeObjectStart()JsonGenerator.writePrecomputedKey(JsonKey key) Write a precomputed key value to the output stream.JsonGeneratorBase.writePrecomputedKey(JsonKey key) Methods in io.helidon.json with parameters of type JsonGeneratorModifier and TypeMethodDescriptionvoidJsonArray.toJson(JsonGenerator generator) voidJsonBoolean.toJson(JsonGenerator generator) voidJsonNull.toJson(JsonGenerator generator) voidJsonNumber.toJson(JsonGenerator generator) voidJsonObject.toJson(JsonGenerator generator) voidJsonString.toJson(JsonGenerator generator) abstract voidJsonValue.toJson(JsonGenerator generator) Write this JSON value to the provided generator. -
Uses of JsonGenerator in io.helidon.json.binding
Methods in io.helidon.json.binding with parameters of type JsonGeneratorModifier and TypeMethodDescriptionvoidJsonBinding.serialize(JsonGenerator generator, Object obj) Serializes an object to JSON using the provided generator.<T> voidJsonBinding.serialize(JsonGenerator generator, T obj, GenericType<? super T> type) Serializes an object of a generic type to JSON using the provided generator.<T> voidJsonBinding.serialize(JsonGenerator generator, T obj, Class<? super T> type) Serializes an object of a specific type to JSON using the provided generator.voidJsonSerializer.serialize(JsonGenerator generator, T instance, boolean writeNulls) Serializes the given instance to JSON using the provided generator.static voidSerializers.serialize(JsonGenerator generator, JsonSerializer<OptionalDouble> serializer, OptionalDouble instance, JsonKey key, boolean writeNulls) Serializes anOptionalDoublevalue with a precomputed key using the provided serializer.static voidSerializers.serialize(JsonGenerator generator, JsonSerializer<OptionalDouble> serializer, OptionalDouble instance, String key, boolean writeNulls) Serializes anOptionalDoublevalue with a key using the provided serializer.static voidSerializers.serialize(JsonGenerator generator, JsonSerializer<OptionalInt> serializer, OptionalInt instance, JsonKey key, boolean writeNulls) Serializes anOptionalIntvalue with a precomputed key using the provided serializer.static voidSerializers.serialize(JsonGenerator generator, JsonSerializer<OptionalInt> serializer, OptionalInt instance, String key, boolean writeNulls) Serializes anOptionalIntvalue with a key using the provided serializer.static voidSerializers.serialize(JsonGenerator generator, JsonSerializer<OptionalLong> serializer, OptionalLong instance, JsonKey key, boolean writeNulls) Serializes anOptionalLongvalue with a precomputed key using the provided serializer.static voidSerializers.serialize(JsonGenerator generator, JsonSerializer<OptionalLong> serializer, OptionalLong instance, String key, boolean writeNulls) Serializes anOptionalLongvalue with a key using the provided serializer.static <T> voidSerializers.serialize(JsonGenerator generator, JsonSerializer<T> serializer, T instance, JsonKey key, boolean writeNulls) Serializes a value with a precomputed key using the provided serializer.static <T extends Optional<?>>
voidSerializers.serialize(JsonGenerator generator, JsonSerializer<T> serializer, T instance, JsonKey key, boolean writeNulls) Serializes anOptionalvalue with a precomputed key using the provided serializer.static <T> voidSerializers.serialize(JsonGenerator generator, JsonSerializer<T> serializer, T instance, String key, boolean writeNulls) Serializes a value with a key using the provided serializer.static <T extends Optional<?>>
voidSerializers.serialize(JsonGenerator generator, JsonSerializer<T> serializer, T instance, String key, boolean writeNulls) Serializes anOptionalvalue with a key using the provided serializer.default voidJsonSerializer.serializeNull(JsonGenerator generator) Serializes a null value. -
Uses of JsonGenerator in io.helidon.json.smile
Classes in io.helidon.json.smile that implement JsonGeneratorModifier and TypeClassDescriptionfinal classSmile binary JSON generator implementation.Methods in io.helidon.json.smile that return JsonGeneratorModifier and TypeMethodDescriptionstatic JsonGeneratorSmileGenerator.create(OutputStream outputStream) Create aJsonGeneratorinstance producing Smile binary JSON into the providedOutputStream.static JsonGeneratorSmileGenerator.create(OutputStream outputStream, SmileConfig config) Create aJsonGeneratorinstance producing Smile binary JSON into the providedOutputStream.SmileGenerator.write(BigDecimal value) SmileGenerator.write(BigInteger value)