Push an array or object scope. @param jo The scope to open. @throws JSONException If nesting is too deep.
(JSONObject jo)
| 264 | * @throws JSONException If nesting is too deep. |
| 265 | */ |
| 266 | private void push(JSONObject jo) throws JSONException { |
| 267 | if (this.top >= maxdepth) { |
| 268 | throw new JSONException("Nesting too deep."); |
| 269 | } |
| 270 | this.stack[this.top] = jo; |
| 271 | this.mode = jo == null ? 'a' : 'k'; |
| 272 | this.top += 1; |
| 273 | } |
| 274 | |
| 275 | /** |
| 276 | * Append either the value <code>true</code> or the value <code>false</code> |