org.json
Class JSObject

java.lang.Object
  extended by org.json.JSONObject
      extended by org.json.JSObject

public class JSObject
extends JSONObject

The Class JSObject.

Author:
Andrea Gioia (andrea.gioia@eng.it)

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

JSObject

public JSObject()
Instantiates a new jS object.


JSObject

public JSObject(JSONObject jo,
                java.lang.String[] names)
         throws JSONException
Instantiates a new jS object.

Parameters:
jo - the jo
names - the names
Throws:
JSONException - the JSON exception

JSObject

public JSObject(JSONTokener x)
         throws JSONException
Instantiates a new jS object.

Parameters:
x - the x
Throws:
JSONException - the JSON exception

JSObject

public JSObject(java.util.Map map)
Instantiates a new jS object.

Parameters:
map - the map

JSObject

public JSObject(java.lang.Object bean)
Instantiates a new jS object.

Parameters:
bean - the bean

JSObject

public JSObject(java.lang.Object object,
                java.lang.String[] names)
Instantiates a new jS object.

Parameters:
object - the object
names - the names

JSObject

public JSObject(java.lang.String source)
         throws JSONException
Instantiates a new jS object.

Parameters:
source - the source
Throws:
JSONException - the JSON exception
Method Detail

toString

public java.lang.String toString()
Description copied from class: JSONObject
Make a JSON text of this JSONObject. For compactness, no whitespace is added. If this would not result in a syntactically correct JSON text, then null will be returned instead.

Warning: This method assumes that the data structure is acyclical.

Overrides:
toString in class JSONObject
Returns:
a printable, displayable, portable, transmittable representation of the object, beginning with { (left brace) and ending with } (right brace).