MCPcopy Create free account
hub / github.com/MCBans/MCBans / array

Method array

src/main/java/com/mcbans/plugin/org/json/JSONWriter.java:141–149  ·  view source on GitHub ↗

Begin appending a new array. All values until the balancing endArray will be appended to this array. The endArray method must be called to mark the array's end. @return this @throws JSONException If the nesting is too deep, or if the object is started in the wrong place (fo

()

Source from the content-addressed store, hash-verified

139 * outermost array or object).
140 */
141 public JSONWriter array() throws JSONException {
142 if (this.mode == 'i' || this.mode == 'o' || this.mode == 'a') {
143 this.push(null);
144 this.append("[");
145 this.comma = false;
146 return this;
147 }
148 throw new JSONException("Misplaced array.");
149 }
150
151 /**
152 * End something.

Callers 7

writeStringMethod · 0.80
writeLongMethod · 0.80
writeIntMethod · 0.80
writeDoubleMethod · 0.80
writeFromInputStreamMethod · 0.80
writeByteArrayMethod · 0.80
getBytesMethod · 0.80

Calls 2

pushMethod · 0.95
appendMethod · 0.95

Tested by

no test coverage detected