public class Jsons extends Object
| 构造器和说明 |
|---|
Jsons() |
| 限定符和类型 | 方法和说明 |
|---|---|
static com.google.gwt.json.client.JSONArray |
getAsArray(com.google.gwt.json.client.JSONObject json,
String path,
com.google.gwt.json.client.JSONArray dv)
Gets as array.
|
static boolean |
getAsBoolean(com.google.gwt.json.client.JSONObject json,
String path,
boolean dv)
Gets as boolean.
|
static Double |
getAsDouble(com.google.gwt.json.client.JSONObject json,
String path,
double dv)
Gets as double.
|
static Integer |
getAsInt(com.google.gwt.json.client.JSONObject json,
String path,
Integer dv)
获取对象中的值
|
static com.google.gwt.json.client.JSONObject |
getAsObject(com.google.gwt.json.client.JSONObject json,
String path,
com.google.gwt.json.client.JSONObject dv)
Gets as object.
|
static String |
getAsString(com.google.gwt.json.client.JSONObject json,
String path,
String dv)
获取对象中的值
|
static com.google.gwt.json.client.JSONValue |
getAsValue(com.google.gwt.json.client.JSONObject json,
String path,
com.google.gwt.json.client.JSONValue dv)
Gets as value.
|
static void |
log(com.google.gwt.core.client.JavaScriptObject log)
Log.
|
static void |
log(String log)
Log.
|
static String |
toJson(com.google.gwt.core.client.JavaScriptObject o,
String ifields,
String efields)
To json string.
|
public static final Integer getAsInt(com.google.gwt.json.client.JSONObject json, String path, Integer dv)
json - JSON对象 objpath - JSON对象图 name.surnamedv - 缺省值public static final String getAsString(com.google.gwt.json.client.JSONObject json, String path, String dv)
json - JSON对象 objpath - JSON对象图 name.surnamedv - 缺省值public static com.google.gwt.json.client.JSONArray getAsArray(com.google.gwt.json.client.JSONObject json,
String path,
com.google.gwt.json.client.JSONArray dv)
json - the jsonpath - the pathdv - the dvpublic static boolean getAsBoolean(com.google.gwt.json.client.JSONObject json,
String path,
boolean dv)
json - the jsonpath - the pathdv - the dvpublic static Double getAsDouble(com.google.gwt.json.client.JSONObject json, String path, double dv)
json - the jsonpath - the pathdv - the dvpublic static com.google.gwt.json.client.JSONObject getAsObject(com.google.gwt.json.client.JSONObject json,
String path,
com.google.gwt.json.client.JSONObject dv)
json - the jsonpath - the pathdv - the dvpublic static com.google.gwt.json.client.JSONValue getAsValue(com.google.gwt.json.client.JSONObject json,
String path,
com.google.gwt.json.client.JSONValue dv)
json - the jsonpath - the pathdv - the dvpublic static void log(String log)
log - the logpublic static void log(com.google.gwt.core.client.JavaScriptObject log)
log - the logCopyright © 2020. All rights reserved.