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
()
| 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. |
no test coverage detected