Package playn.core

Interface Json.Writer

All Superinterfaces:
playn.core.json.JsonSink<Json.Writer>
Enclosing interface:
Json

public static interface Json.Writer extends playn.core.json.JsonSink<Json.Writer>
A JsonSink that writes JSON to a string.
  • Method Summary

    Modifier and Type
    Method
    Description
    useVerboseFormat(boolean verbose)
    Tells the writer whether to use a verbose, more human-readable String representation.
    Completes this JSON writing session and returns the internal representation as a String.

    Methods inherited from interface playn.core.json.JsonSink

    array, array, array, array, array, array, end, nul, nul, object, object, object, object, object, object, value, value, value, value, value, value, value, value
  • Method Details

    • write

      String write()
      Completes this JSON writing session and returns the internal representation as a String.
    • useVerboseFormat

      Json.Writer useVerboseFormat(boolean verbose)
      Tells the writer whether to use a verbose, more human-readable String representation.