Lines Matching refs:object
29 * JSONObject object = ...
30 * String json = object.toString();</pre>
34 * <li>The stringer must have exactly one top-level array or object.
37 * #object} must have a matching call to {@link #endObject}.
63 /** The output data, containing at most one top-level array or object. */
86 * An object with no keys or values requires no separators or newlines
92 * An object whose most recent element is a key. The next element must
98 * An object with at least one name/value pair requires a comma and
152 * Begins encoding a new object. Each call to this method must be paired
157 public JSONStringer object() throws JSONException {
162 * Ends encoding the current object.
385 if (context == Scope.NONEMPTY_OBJECT) { // first in object
387 } else if (context != Scope.EMPTY_OBJECT) { // not in an object!
396 * inline array, or inline object. Also adjusts the stack to expect either a