public class JsonUtil extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
JsonUtil.JsonBuilder
The type Json builder.
|
| 构造器和说明 |
|---|
JsonUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static JsonUtil.JsonBuilder |
builder()
Builder json com.gobrs.async.util . json builder.
|
static <T> String |
obj2String(T obj)
Obj 2 string string.
|
static <T> String |
obj2StringPretty(T obj)
Obj 2 string pretty string.
|
static <T> T |
string2Obj(String str,
Class<?> collectionClazz,
Class<?>... elementClazzes)
String 2 obj t.
|
static <T> T |
string2Obj(String str,
Class<T> clazz)
String 2 obj t.
|
static <T> T |
string2Obj(String str,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
String 2 obj t.
|
public static <T> String obj2String(T obj)
T - the type parameterobj - the objpublic static <T> String obj2StringPretty(T obj)
T - the type parameterobj - the objpublic static <T> T string2Obj(String str, Class<T> clazz)
T - the type parameterstr - the strclazz - the clazzpublic static <T> T string2Obj(String str, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
T - the type parameterstr - the strtypeReference - the type referencepublic static <T> T string2Obj(String str, Class<?> collectionClazz, Class<?>... elementClazzes)
T - the type parameterstr - the strcollectionClazz - the collection clazzelementClazzes - the element clazzespublic static JsonUtil.JsonBuilder builder()
Copyright © 2022. All rights reserved.