Enum Class JsonWriter.OutputType

java.lang.Object
java.lang.Enum<JsonWriter.OutputType>
arc.util.serialization.JsonWriter.OutputType
All Implemented Interfaces:
Serializable, Comparable<JsonWriter.OutputType>, Constable
Enclosing class:
JsonWriter

public static enum JsonWriter.OutputType extends Enum<JsonWriter.OutputType>
  • Enum Constant Details

    • json

      public static final JsonWriter.OutputType json
      Normal JSON, with all its double quotes.
    • javascript

      public static final JsonWriter.OutputType javascript
      Like JSON, but names are only double quoted if necessary.
    • minimal

      public static final JsonWriter.OutputType minimal
      Like JSON, but:
      • Names only require double quotes if they start with space or any of ":,}/ or they contain // or /* or :.
      • Values only require double quotes if they start with space or any of ":,{[]/ or they contain // or /* or any of }], or they are equal to true, false , or null.
      • Newlines are treated as commas, making commas optional in many cases.
      • C style comments may be used: //... or /*...*/
  • Method Details

    • values

      public static JsonWriter.OutputType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JsonWriter.OutputType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • quoteValue

      public String quoteValue(Object value)
    • quoteName

      public String quoteName(String value)