Lines Matching defs:array
34 * <li>The stringer must have exactly one top-level array or object.
35 * <li>Lexical scopes must be balanced: every call to {@link #array} must
63 /** The output data, containing at most one top-level array or object. */
74 * An array with no elements requires no separators or newlines before
80 * A array with at least one value requires a comma and newline before
104 * A special bracketless array needed by JSONStringer.join() and
133 * Begins encoding a new array. Each call to this method must be paired with
138 public JSONStringer array() throws JSONException {
143 * Ends encoding the current array.
396 * inline array, or inline object. Also adjusts the stack to expect either a
405 if (context == Scope.EMPTY_ARRAY) { // first in array
408 } else if (context == Scope.NONEMPTY_ARRAY) { // another in array