|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use JSONObject | |
---|---|
org.apache.wink.json4j | |
org.apache.wink.json4j.compat.impl | |
org.apache.wink.providers.json4j |
Uses of JSONObject in org.apache.wink.json4j |
---|
Subclasses of JSONObject in org.apache.wink.json4j | |
---|---|
class |
OrderedJSONObject
Extension of the basic JSONObject. |
Methods in org.apache.wink.json4j that return JSONObject | |
---|---|
JSONObject |
JSONObject.append(String key,
Object value)
Method to append the 'value' object to the element at entry 'key'. |
JSONObject |
JSONArray.getJSONObject(int index)
Utility method to obtain the specified key as a JSONObject Only values that are instances of JSONObject will be returned. |
JSONObject |
JSONObject.getJSONObject(String key)
Utility method to obtain the specified key as a JSONObject Only values that are instances of JSONObject will be returned. |
JSONObject |
JSONObject.optJSONObject(String key)
Utility method to obtain the specified key as a JSONObject Only values that are instances of JSONObject will be returned. |
JSONObject |
JSONObject.optJSONObject(String key,
JSONObject defaultValue)
Utility method to obtain the specified key as a JSONObject Only values that are instances of JSONObject will be returned. |
JSONObject |
JSONObject.put(String key,
boolean value)
Method to add an atomic boolean to the JSONObject. |
JSONObject |
JSONObject.put(String key,
Collection value)
Method to add a Collection as a new JSONArray contained in this JSONObject |
JSONObject |
JSONObject.put(String key,
Collection value,
boolean includeSuperclass)
Method to add a Collection as a new JSONArray contained in this JSONObject |
JSONObject |
JSONObject.put(String key,
double value)
Method to add an atomic double to the JSONObject. |
JSONObject |
JSONObject.put(String key,
int value)
Method to add an atomic integer to the JSONObject. |
JSONObject |
JSONObject.put(String key,
long value)
Method to add an atomic long to the JSONObject. |
JSONObject |
JSONObject.put(String key,
Map value)
Method to add a Map as a new JSONObject contained in this JSONObject Same as calling put(String, Map, true); |
JSONObject |
JSONObject.put(String key,
Map value,
boolean includeSuperclass)
Method to add a Map as a new JSONObject contained in this JSONObject |
JSONObject |
JSONObject.put(String key,
Object value)
Similar to default HashMap put, except it returns JSONObject instead of Object. |
JSONObject |
JSONObject.put(String key,
Object[] value)
Method to add an Object array as a new JSONArray contained in this JSONObject |
JSONObject |
JSONObject.put(String key,
Object[] value,
boolean includeSuperclass)
Method to add an Object array as a new JSONArray contained in this JSONObject |
JSONObject |
JSONObject.put(String key,
short value)
Method to add an atomic short to the JSONObject. |
JSONObject |
JSONObject.putOnce(String key,
Object value)
Put a key/value pair into the JSONObject, but only if key/value are both not null, and only if the key is not present already. |
JSONObject |
JSONObject.putOpt(String key,
Object value)
Put a key/value pair into the JSONObject, but only if the key and value are non-null. |
Methods in org.apache.wink.json4j with parameters of type JSONObject | |
---|---|
static String[] |
JSONObject.getNames(JSONObject obj)
Utility function that returns a String[] of all the names of the keys (attributes) of this JSONObject |
JSONObject |
JSONObject.optJSONObject(String key,
JSONObject defaultValue)
Utility method to obtain the specified key as a JSONObject Only values that are instances of JSONObject will be returned. |
Constructors in org.apache.wink.json4j with parameters of type JSONObject | |
---|---|
JSONObject(JSONObject obj,
String[] keys)
Create a new instance of this class taking selected values from the underlying one. |
Uses of JSONObject in org.apache.wink.json4j.compat.impl |
---|
Fields in org.apache.wink.json4j.compat.impl declared as JSONObject | |
---|---|
protected JSONObject |
ApacheJSONObjectDelegate.delegate
|
Constructors in org.apache.wink.json4j.compat.impl with parameters of type JSONObject | |
---|---|
ApacheJSONObjectDelegate(JSONObject jObj)
|
Uses of JSONObject in org.apache.wink.providers.json4j |
---|
Methods in org.apache.wink.providers.json4j that return JSONObject | |
---|---|
JSONObject |
JSON4JObjectProvider.readFrom(Class<JSONObject> clazz,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream is)
|
Methods in org.apache.wink.providers.json4j with parameters of type JSONObject | |
---|---|
long |
JSON4JObjectProvider.getSize(JSONObject obj,
Class<?> clazz,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
void |
JSON4JObjectProvider.writeTo(JSONObject obj,
Class<?> clazz,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os)
|
Method parameters in org.apache.wink.providers.json4j with type arguments of type JSONObject | |
---|---|
JSONObject |
JSON4JObjectProvider.readFrom(Class<JSONObject> clazz,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream is)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |