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)
| 1000 | * @throws JSONException If the key is null. |
| 1001 | */ |
| 1002 | public JSONObject put(String key, boolean value) throws JSONException { |
| 1003 | put(key, value ? Boolean.TRUE : Boolean.FALSE); |
| 1004 | return this; |
| 1005 | } |
| 1006 | |
| 1007 | |
| 1008 | /** |
no test coverage detected