Package javax.json

Interface JsonWriter

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable

    public interface JsonWriter
    extends java.io.Closeable
    Write a JsonObject, JsonArray JsonStructure or more generic a JsonValue to the output.
    See Also:
    JsonWriterFactory
    • Method Detail

      • writeArray

        void writeArray​(JsonArray array)
      • writeObject

        void writeObject​(JsonObject object)
      • write

        default void write​(JsonValue value)
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable