public class GsonUtils extends Object
| 构造器和说明 |
|---|
GsonUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
fromJson(com.google.gson.JsonElement jsonElement,
Class<T> classOfT) |
static <T> T |
fromJson(com.google.gson.JsonElement jsonElement,
Type typeOfT) |
static <T> T |
fromJson(String json,
Class<T> classOfT) |
static <T> T |
fromJson(String json,
Type typeOfT) |
Boolean |
isValidJson(String str) |
static com.google.gson.JsonElement |
parseJson(String json) |
static String |
toJson(Object o) |
static String |
toPrettyPrintJson(Object o) |
Copyright © 2019 Baidu, Inc.. All rights reserved.