Get the object value associated with an index. @param index The index must be between 0 and length() - 1. @return An object value. @throws JSONException If there is no value for the index.
(int index)
| 182 | * @throws JSONException If there is no value for the index. |
| 183 | */ |
| 184 | public Object get(int index) throws JSONException { |
| 185 | Object object = this.opt(index); |
| 186 | if (object == null) { |
| 187 | throw new JSONException("JSONArray[" + index + "] not found."); |
| 188 | } |
| 189 | return object; |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * Get the boolean value associated with an index. The string values "true" |
no test coverage detected