Interface JSONStreamAwareEx

  • All Superinterfaces:
    JSONStreamAware
    All Known Implementing Classes:
    JSONArray, JSONObject

    public interface JSONStreamAwareEx
    extends JSONStreamAware
    Beans that support customized output of JSON text to a writer shall implement this interface.
    • Method Detail

      • writeJSONString

        void writeJSONString​(java.lang.Appendable out,
                             JSONStyle compression)
                      throws java.io.IOException
        write JSON string to out.
        Parameters:
        out - the output to write to
        compression - the JSON style for formatting
        Throws:
        java.io.IOException - if I/O error occurs