|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rythmengine.utils.JSONWrapper
public class JSONWrapper
Define a type to wrap a JSON string
Constructor Summary | |
---|---|
JSONWrapper(String str)
Construct a JSONWrapper with a JSON string. |
Method Summary | |
---|---|
List<Object> |
getArray()
Return a List of object contained in the JSON array. |
Map<String,Object> |
getObject()
Return a Map of String and object contained in the JSON object. |
boolean |
isArray()
Return true if the underline JSON data is an array |
static JSONWrapper |
wrap(String s)
Parse the string and return the JSONWrapper |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSONWrapper(String str)
str
- Method Detail |
---|
public boolean isArray()
public List<Object> getArray()
public Map<String,Object> getObject()
public static JSONWrapper wrap(String s)
s
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |