Get the string associated with an index. @param index The index must be between 0 and length() - 1. @return A string value. @throws JSONException If there is no value for the index.
(int index)
| 326 | * @throws JSONException If there is no value for the index. |
| 327 | */ |
| 328 | public String getString(int index) throws JSONException { |
| 329 | Object object = get(index); |
| 330 | return object == JSONObject.NULL ? null : object.toString(); |
| 331 | } |
| 332 | |
| 333 | |
| 334 | /** |
no test coverage detected