Push an array or object scope. @param c The scope to open. @throws JSONException If nesting is too deep.
(JSONObject jo)
| 269 | * @throws JSONException If nesting is too deep. |
| 270 | */ |
| 271 | private void push(JSONObject jo) throws JSONException { |
| 272 | if (this.top >= maxdepth) { |
| 273 | throw new JSONException("Nesting too deep."); |
| 274 | } |
| 275 | this.stack[this.top] = jo; |
| 276 | this.mode = jo == null ? 'a' : 'k'; |
| 277 | this.top += 1; |
| 278 | } |
| 279 | |
| 280 | |
| 281 | /** |