- <init>
Construct a JSONObject from a Map.
- put
Put a key/boolean pair in the JSONObject.
- toString
Make a prettyprinted JSON text of this JSONObject. Warning: This method assumes
that the data struct
- get
Get the value object associated with a key.
- getBoolean
Get the boolean value associated with a key.
- getInt
Get the int value associated with a key. If the number value is too large for an
int, it will be cli
- getLong
Get the long value associated with a key. If the number value is too long for a
long, it will be cli
- keys
Get an enumeration of the keys of the JSONObject.
- length
Get the number of keys stored in the JSONObject.
- numberToString
Produce a string from a Number.
- opt
Get an optional value associated with a key.
- optBoolean
Get an optional boolean associated with a key. It returns the defaultValue if
there is no such key,