Put a key/boolean pair in the JSONObject. @param key A key string. @param value A boolean which is the value. @return this. @throws JSONException If the key is null.
(String key, boolean value)
| 1322 | * @throws JSONException If the key is null. |
| 1323 | */ |
| 1324 | public JSONObject put(String key, boolean value) throws JSONException { |
| 1325 | this.put(key, value ? Boolean.TRUE : Boolean.FALSE); |
| 1326 | return this; |
| 1327 | } |
| 1328 | |
| 1329 | /** |
| 1330 | * Put a key/value pair in the JSONObject, where the value will be a |
no test coverage detected