public class JsonHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
toJsonString(Object val)
Convert Java object to a JSON string.
|
static List |
toList(String json)
Convert JSON array tp Java List
|
static Map |
toMap(String json)
Convert a JSON map to a Java Map
|
static Map[] |
toMaps(String json)
Convert JSON Array to Java array of maps.
|
public static Map toMap(String json)
json
- JSON mappublic static Map[] toMaps(String json)
json
- JSON arraypublic static String toJsonString(Object val)
val
- Java objectCopyright © 2016 JavaLite. All rights reserved.