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