Uses of Class
com.azure.json.JsonWriter
Packages that use JsonWriter
Package
Description
The Azure JSON library provides interfaces for stream-style JSON reading and writing.
This package contains models for representing JSON as a tree structure.
-
Uses of JsonWriter in com.azure.json
Methods in com.azure.json that return JsonWriterModifier and TypeMethodDescriptionJsonProvider.createWriter(OutputStream json, JsonOptions options) Creates an instance ofJsonWriterthat writes to anOutputStream.JsonProvider.createWriter(Writer json, JsonOptions options) Creates an instance ofJsonWriterthat writes to anWriter.static JsonWriterJsonProviders.createWriter(OutputStream json) Creates an instance ofJsonWriterthat writes to anOutputStream.static JsonWriterJsonProviders.createWriter(OutputStream json, JsonOptions options) Creates an instance ofJsonWriterthat writes to anOutputStream.static JsonWriterJsonProviders.createWriter(Writer json) Creates an instance ofJsonWriterthat writes to anWriter.static JsonWriterJsonProviders.createWriter(Writer json, JsonOptions options) Creates an instance ofJsonWriterthat writes to anWriter.abstract JsonWriterJsonWriter.flush()Flushes any un-flushed content written to this writer.JsonSerializable.toJson(JsonWriter jsonWriter) Writes the object to the passedJsonWriter.final <T> JsonWriterJsonWriter.writeArray(Iterable<T> array, WriteValueCallback<JsonWriter, T> elementWriterFunc) Writes a JSON array.<T> JsonWriterJsonWriter.writeArray(Iterable<T> array, WriteValueCallback<JsonWriter, T> elementWriterFunc, boolean skipNullElements) Writes a JSON array.final <T> JsonWriterJsonWriter.writeArray(T[] array, WriteValueCallback<JsonWriter, T> elementWriterFunc) Writes a JSON array.<T> JsonWriterJsonWriter.writeArray(T[] array, WriteValueCallback<JsonWriter, T> elementWriterFunc, boolean skipNullElements) Writes a JSON array.final <T> JsonWriterJsonWriter.writeArrayField(String fieldName, Iterable<T> array, WriteValueCallback<JsonWriter, T> elementWriterFunc) Writes a JSON array field.<T> JsonWriterJsonWriter.writeArrayField(String fieldName, Iterable<T> array, WriteValueCallback<JsonWriter, T> elementWriterFunc, boolean skipNullElements) Writes a JSON array field.final <T> JsonWriterJsonWriter.writeArrayField(String fieldName, T[] array, WriteValueCallback<JsonWriter, T> elementWriterFunc) Writes a JSON array field.<T> JsonWriterJsonWriter.writeArrayField(String fieldName, T[] array, WriteValueCallback<JsonWriter, T> elementWriterFunc, boolean skipNullElements) Writes a JSON array field.abstract JsonWriterJsonWriter.writeBinary(byte[] value) Writes a JSON binary value.final JsonWriterJsonWriter.writeBinaryField(String fieldName, byte[] value) Writes a JSON binary field.abstract JsonWriterJsonWriter.writeBoolean(boolean value) Writes a JSON boolean value (trueorfalse).final JsonWriterJsonWriter.writeBoolean(Boolean value) Writes a nullable JSON boolean value (true,false, ornull).final JsonWriterJsonWriter.writeBooleanField(String fieldName, boolean value) Writes a JSON boolean field.final JsonWriterJsonWriter.writeBooleanField(String fieldName, Boolean value) Writes a nullable JSON boolean field.abstract JsonWriterJsonWriter.writeDouble(double value) Writes a JSON double value.final JsonWriterJsonWriter.writeDoubleField(String fieldName, double value) Writes a JSON double field.abstract JsonWriterJsonWriter.writeEndArray()Writes a JSON end array (]).abstract JsonWriterJsonWriter.writeEndObject()Writes a JSON end object (}).abstract JsonWriterJsonWriter.writeFieldName(String fieldName) Writes a JSON field name ("fieldName":).abstract JsonWriterJsonWriter.writeFloat(float value) Writes a JSON float value.final JsonWriterJsonWriter.writeFloatField(String fieldName, float value) Writes a JSON float field.abstract JsonWriterJsonWriter.writeInt(int value) Writes a JSON int value.final JsonWriterJsonWriter.writeIntField(String fieldName, int value) Writes a JSON int field.final JsonWriterJsonWriter.writeJson(JsonSerializable<?> value) Writes aJsonSerializableobject.final JsonWriterJsonWriter.writeJsonField(String fieldName, JsonSerializable<?> value) Writes aJsonSerializablefield.abstract JsonWriterJsonWriter.writeLong(long value) Writes a JSON long value.final JsonWriterJsonWriter.writeLongField(String fieldName, long value) Writes a JSON long field.final <T> JsonWriterJsonWriter.writeMap(Map<String, T> map, WriteValueCallback<JsonWriter, T> valueWriterFunc) Writes a JSON map.<T> JsonWriterJsonWriter.writeMap(Map<String, T> map, WriteValueCallback<JsonWriter, T> valueWriterFunc, boolean skipNullValues) Writes a JSON map.final <T> JsonWriterJsonWriter.writeMapField(String fieldName, Map<String, T> map, WriteValueCallback<JsonWriter, T> valueWriterFunc) Writes a JSON map field.<T> JsonWriterJsonWriter.writeMapField(String fieldName, Map<String, T> map, WriteValueCallback<JsonWriter, T> valueWriterFunc, boolean skipNullValues) Writes a JSON map field.abstract JsonWriterJsonWriter.writeNull()Writes a JSON null.final <T> JsonWriterJsonWriter.writeNullableField(String fieldName, T nullable, WriteValueCallback<JsonWriter, T> writerFunc) Writes a nullable JSON field.final JsonWriterJsonWriter.writeNullField(String fieldName) Writes a JSON null field ("fieldName":null).final JsonWriterJsonWriter.writeNumber(Number value) Writes a nullable JSON number value.final JsonWriterJsonWriter.writeNumberField(String fieldName, Number value) Writes a nullable JSON number field.final JsonWriterJsonWriter.writeRawField(String fieldName, String value) Writes the passed field literally without any additional handling.abstract JsonWriterJsonWriter.writeRawValue(String value) Writes the passed value literally without any additional handling.abstract JsonWriterJsonWriter.writeStartArray()Writes a JSON start array ([).final JsonWriterJsonWriter.writeStartArray(String fieldName) Writes a JSON start array ([) with a preceding field name.abstract JsonWriterJsonWriter.writeStartObject()Writes a JSON start object ({).final JsonWriterJsonWriter.writeStartObject(String fieldName) Writes a JSON start object ({) with a preceding field name.abstract JsonWriterJsonWriter.writeString(String value) Writes a JSON String value.final JsonWriterJsonWriter.writeStringField(String fieldName, String value) Writes a JSON String field.JsonWriter.writeUntyped(Object value) Writes the unknown typevalue.JsonWriter.writeUntypedField(String fieldName, Object value) Writes the unknown typevaluefield.Methods in com.azure.json with parameters of type JsonWriterModifier and TypeMethodDescriptionJsonSerializable.toJson(JsonWriter jsonWriter) Writes the object to the passedJsonWriter.Method parameters in com.azure.json with type arguments of type JsonWriterModifier and TypeMethodDescriptionfinal <T> JsonWriterJsonWriter.writeArray(Iterable<T> array, WriteValueCallback<JsonWriter, T> elementWriterFunc) Writes a JSON array.<T> JsonWriterJsonWriter.writeArray(Iterable<T> array, WriteValueCallback<JsonWriter, T> elementWriterFunc, boolean skipNullElements) Writes a JSON array.final <T> JsonWriterJsonWriter.writeArray(T[] array, WriteValueCallback<JsonWriter, T> elementWriterFunc) Writes a JSON array.<T> JsonWriterJsonWriter.writeArray(T[] array, WriteValueCallback<JsonWriter, T> elementWriterFunc, boolean skipNullElements) Writes a JSON array.final <T> JsonWriterJsonWriter.writeArrayField(String fieldName, Iterable<T> array, WriteValueCallback<JsonWriter, T> elementWriterFunc) Writes a JSON array field.<T> JsonWriterJsonWriter.writeArrayField(String fieldName, Iterable<T> array, WriteValueCallback<JsonWriter, T> elementWriterFunc, boolean skipNullElements) Writes a JSON array field.final <T> JsonWriterJsonWriter.writeArrayField(String fieldName, T[] array, WriteValueCallback<JsonWriter, T> elementWriterFunc) Writes a JSON array field.<T> JsonWriterJsonWriter.writeArrayField(String fieldName, T[] array, WriteValueCallback<JsonWriter, T> elementWriterFunc, boolean skipNullElements) Writes a JSON array field.final <T> JsonWriterJsonWriter.writeMap(Map<String, T> map, WriteValueCallback<JsonWriter, T> valueWriterFunc) Writes a JSON map.<T> JsonWriterJsonWriter.writeMap(Map<String, T> map, WriteValueCallback<JsonWriter, T> valueWriterFunc, boolean skipNullValues) Writes a JSON map.final <T> JsonWriterJsonWriter.writeMapField(String fieldName, Map<String, T> map, WriteValueCallback<JsonWriter, T> valueWriterFunc) Writes a JSON map field.<T> JsonWriterJsonWriter.writeMapField(String fieldName, Map<String, T> map, WriteValueCallback<JsonWriter, T> valueWriterFunc, boolean skipNullValues) Writes a JSON map field.final <T> JsonWriterJsonWriter.writeNullableField(String fieldName, T nullable, WriteValueCallback<JsonWriter, T> writerFunc) Writes a nullable JSON field. -
Uses of JsonWriter in com.azure.json.models
Methods in com.azure.json.models that return JsonWriterModifier and TypeMethodDescriptionJsonArray.toJson(JsonWriter jsonWriter) JsonBoolean.toJson(JsonWriter jsonWriter) JsonNull.toJson(JsonWriter jsonWriter) JsonNumber.toJson(JsonWriter jsonWriter) JsonObject.toJson(JsonWriter jsonWriter) JsonString.toJson(JsonWriter jsonWriter) Methods in com.azure.json.models with parameters of type JsonWriterModifier and TypeMethodDescriptionJsonArray.toJson(JsonWriter jsonWriter) JsonBoolean.toJson(JsonWriter jsonWriter) JsonNull.toJson(JsonWriter jsonWriter) JsonNumber.toJson(JsonWriter jsonWriter) JsonObject.toJson(JsonWriter jsonWriter) JsonString.toJson(JsonWriter jsonWriter)