Lexical scoping elements within this stringer, necessary to insert the appropriate separator characters (ie. commas and colons) and to detect nesting errors.
- Implemented types
- DANGLING_KEY → const Scope
An object whose most recent element is a key. The next element must be a value.
- EMPTY_ARRAY → const Scope
An array with no elements requires no separators or newlines before it is closed.
- EMPTY_OBJECT → const Scope
An object with no keys or values requires no separators or newlines before it is closed.
- NONEMPTY_ARRAY → const Scope
A array with at least one value requires a comma and newline before the next element.
- NONEMPTY_OBJECT → const Scope
An object with at least one name/value pair requires a comma and newline before the next element.
- NULL → const Scope
A special bracketless array needed by JSONStringer.join() and JSONObject.quote() only. Not used for JSON encoding.
→ const List<
A constant List of the values in this enum, in order of their declaration.