Class JSONArrayWriter<T extends net.minidev.json.JSONAware>

    • Constructor Detail

      • JSONArrayWriter

        public JSONArrayWriter​(Writer writer)
        Deprecated.
        Creates a new JSON array writer. The output JSON array may contain duplicates.
        Parameters:
        writer - Writer for the JSON array. Must not be null.
      • JSONArrayWriter

        public JSONArrayWriter​(Writer writer,
                               boolean noDuplicates)
        Deprecated.
        Creates a new JSON array writer.
        Parameters:
        writer - Writer for the JSON array. Must not be null.
        noDuplicates - true to ensure no duplicates are written to the JSON array.
    • Method Detail

      • writeStart

        public void writeStart()
        Deprecated.
        Writes out the opening '[' of the JSON array.
      • accept

        public void accept​(T element)
        Deprecated.
        Specified by:
        accept in interface Consumer<T extends net.minidev.json.JSONAware>
      • append

        @Deprecated
        public void append​(T element)
        Deprecated.
        Description copied from interface: Appendable
        Appends the specified element.
        Specified by:
        append in interface Appendable<T extends net.minidev.json.JSONAware>
        Parameters:
        element - The element to append. May be null.
      • writeEnd

        public void writeEnd()
        Deprecated.
        Writes out the closing ']' of the JSON array and closes the writer.