public final class FastJsonKit extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T[]> |
to2DList(String json,
Class<T[]> clazz)
转化为2D List
|
static String |
toJson(Object obj)
转化为Json
|
static String |
toJson(Object obj,
String datePattern)
转化为Json
|
static <T> List<T> |
toList(String json,
Class<T> clazz)
转化为List
|
static <K,V> Map<K,V> |
toMap(Object obj)
转化为Map
|
static <K,V> Map<K,V> |
toMap(String json)
转化为Map
|
static <K> List<Map<K,Object>> |
toMapList(String json)
转化为List< Map< K, Object>>
|
static <T> T |
toObj(String json,
Class<T> clazz)
转化为Obj
|
public static <T> T toObj(String json, Class<T> clazz)
T - json - clazz - public static <T> List<T> toList(String json, Class<T> clazz)
T - json - clazz - public static <T> List<T[]> to2DList(String json, Class<T[]> clazz)
T - json - clazz - Copyright © 2020. All rights reserved.