Returns true if this array has no value at index, or if its value is the null reference or JSONObject#NULL.
(int index)
| 261 | * is the {@code null} reference or {@link JSONObject#NULL}. |
| 262 | */ |
| 263 | public boolean isNull(int index) { |
| 264 | Object value = opt(index); |
| 265 | return value == null || value == JSONObject.NULL; |
| 266 | } |
| 267 | |
| 268 | /** |
| 269 | * Returns the value at {@code index}. |