public class JSONWrapper extends Object
Constructor and Description |
---|
JSONWrapper(String str)
Construct a JSONWrapper with a JSON string.
|
Modifier and Type | Method and Description |
---|---|
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
|
public JSONWrapper(String str)
str
- public boolean isArray()
public List<Object> getArray()
public Map<String,Object> getObject()
public static JSONWrapper wrap(String s)
s
- Copyright © 2015. All Rights Reserved.