|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.json.jettison.JettisonJSONObject
public class JettisonJSONObject
A wrapper around jettison JSONObject.
| Constructor Summary | |
|---|---|
JettisonJSONObject(org.codehaus.jettison.json.JSONObject jsonObject)
|
|
JettisonJSONObject(String json)
|
|
| Method Summary | |
|---|---|
boolean |
isNullValue(Object value)
Returns true if the given value is a null value. |
Iterator<String> |
keys()
Returns a Map holding all the keys and value for the given Json Object. |
Object |
opt(String key)
Returns the given object under the key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JettisonJSONObject(String json)
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionpublic JettisonJSONObject(org.codehaus.jettison.json.JSONObject jsonObject)
| Method Detail |
|---|
public Iterator<String> keys()
JsonObject
keys in interface JsonObjectpublic Object opt(String key)
JsonObjectnull if nothing
is registerd under the key.
opt in interface JsonObjectpublic boolean isNullValue(Object value)
JsonObjecttrue if the given value is a null value.
isNullValue in interface JsonObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||