- <init>
Construct a JSONObject from a JSONTokener.
- put
Put a key/boolean pair in the JSONObject.
- toString
Make a prettyprinted JSON text of this JSONObject using JSONRenderer#prettyPrint
- getString
Get the string associated with a key.
- get
Get the value object associated with a key.
- optString
Get an optional string associated with a key. It returns the defaultValue if
there is no such key.
- getBoolean
Get the boolean value associated with a key.
- getJSONArray
Get the JSONArray value associated with a key.
- keys
Get an enumeration of the keys of the JSONObject.
- optJSONArray
Get an optional JSONArray associated with a key. It returns null if there is no
such key, or if its
- accumulate
Accumulate values under a key. It is similar to the put method except that if
there is already an ob
- has
Determine if the JSONObject contains a specific key.