|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.json.JSONObject
org.json.JSObject
public class JSObject
The Class JSObject.
Field Summary |
---|
Fields inherited from class org.json.JSONObject |
---|
myHashMap, NULL |
Constructor Summary | |
---|---|
JSObject()
Instantiates a new jS object. |
|
JSObject(JSONObject jo,
java.lang.String[] names)
Instantiates a new jS object. |
|
JSObject(JSONTokener x)
Instantiates a new jS object. |
|
JSObject(java.util.Map map)
Instantiates a new jS object. |
|
JSObject(java.lang.Object bean)
Instantiates a new jS object. |
|
JSObject(java.lang.Object object,
java.lang.String[] names)
Instantiates a new jS object. |
|
JSObject(java.lang.String source)
Instantiates a new jS object. |
Method Summary | |
---|---|
java.lang.String |
toString()
Make a JSON text of this JSONObject. |
Methods inherited from class org.json.JSONObject |
---|
accumulate, append, doubleToString, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, isNull, keys, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOpt, quote, remove, toJSONArray, toString, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JSObject()
public JSObject(JSONObject jo, java.lang.String[] names) throws JSONException
jo
- the jonames
- the names
JSONException
- the JSON exceptionpublic JSObject(JSONTokener x) throws JSONException
x
- the x
JSONException
- the JSON exceptionpublic JSObject(java.util.Map map)
map
- the mappublic JSObject(java.lang.Object bean)
bean
- the beanpublic JSObject(java.lang.Object object, java.lang.String[] names)
object
- the objectnames
- the namespublic JSObject(java.lang.String source) throws JSONException
source
- the source
JSONException
- the JSON exceptionMethod Detail |
---|
public java.lang.String toString()
JSONObject
Warning: This method assumes that the data structure is acyclical.
toString
in class JSONObject
{
(left brace) and ending
with }
(right brace).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |