public class GsonUtils extends Object
| Constructor and Description |
|---|
GsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
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 © 2020 Baidu, Inc.. All rights reserved.