public class Json extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends JavaScriptObject> |
parse(String jsonAsString)
Parse a string containing JSON into a
JavaScriptObject . |
static String |
stringify(JavaScriptObject json)
Convert a
JavaScriptObject into a string representation. |
public static <T extends JavaScriptObject> T parse(String jsonAsString)
JavaScriptObject
.T
- the overlay type to expect from the parsejsonAsString
- public static String stringify(JavaScriptObject json)
JavaScriptObject
into a string representation.json
- a JavaScript object to be converted to a stringCopyright © 2018. All rights reserved.