public class FastJson1JsonAdapter extends Object implements JsonAdapter
| Modifier and Type | Field and Description |
|---|---|
static String |
CLAZZ_NAME
类名
|
| Constructor and Description |
|---|
FastJson1JsonAdapter() |
| Modifier and Type | Method and Description |
|---|---|
<T> List<T> |
readList(String json,
Class<T> clazz)
将 json 字符串转成对象
|
<T> T |
readValue(byte[] json,
Class<T> clazz)
将 json byte array 转成对象
|
<T> T |
readValue(byte[] json,
Type type)
将 json byte array 转成对象
|
<T> T |
readValue(String json,
Class<T> clazz)
将 json 字符串转成对象
|
<T> T |
readValue(String json,
Type type)
将 json 字符串转成对象
|
byte[] |
toJsonBytes(Object object)
转换成 json byte array
|
String |
toJsonString(Object object)
转换成 json 字符串
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertValue, convertValue, readListpublic static final String CLAZZ_NAME
public String toJsonString(Object object)
JsonAdaptertoJsonString in interface JsonAdapterobject - objectpublic byte[] toJsonBytes(Object object)
JsonAdaptertoJsonBytes in interface JsonAdapterobject - objectpublic <T> T readValue(String json, Class<T> clazz)
JsonAdapterreadValue in interface JsonAdapterT - 泛型json - jsonclazz - Classpublic <T> T readValue(String json, Type type)
JsonAdapterreadValue in interface JsonAdapterT - 泛型json - jsontype - Typepublic <T> T readValue(byte[] json,
Class<T> clazz)
JsonAdapterreadValue in interface JsonAdapterT - 泛型json - jsonclazz - Classpublic <T> T readValue(byte[] json,
Type type)
JsonAdapterreadValue in interface JsonAdapterT - 泛型json - jsontype - Typepublic <T> List<T> readList(String json, Class<T> clazz)
JsonAdapterreadList in interface JsonAdapterT - 泛型json - jsonclazz - ClassCopyright © 2025. All rights reserved.