public class Fastjsons extends Object
| 构造器和说明 |
|---|
Fastjsons() |
| 限定符和类型 | 方法和说明 |
|---|---|
static com.alibaba.fastjson2.JSONReader.Feature[] |
getDefaultReaderFeatures() |
static com.alibaba.fastjson2.JSONWriter.Feature[] |
getDefaultWriterFeatures() |
static <T> List<T> |
toJavaList(String text,
Class<T> clazz) |
static <T> List<T> |
toJavaList(String text,
Class<T> clazz,
com.alibaba.fastjson2.JSONReader.Feature... features) |
static <T> List<T> |
toJavaList(String text,
Type type) |
static <T> List<T> |
toJavaList(String text,
Type type,
com.alibaba.fastjson2.JSONReader.Feature... features) |
static <T> T |
toJavaObject(String text,
Class<T> clazz) |
static <T> T |
toJavaObject(String text,
Class<T> clazz,
com.alibaba.fastjson2.JSONReader.Feature... features) |
static <T> T |
toJavaObject(String text,
Type type) |
static <T> T |
toJavaObject(String text,
Type type,
com.alibaba.fastjson2.JSONReader.Feature... features) |
static <T> T |
toJavaObject(String json,
TypeRef<T> type) |
static <T> T |
toJavaObject(String json,
TypeRef<T> type,
com.alibaba.fastjson2.JSONReader.Feature... features) |
static <T> T |
toJavaObject(String text,
com.alibaba.fastjson2.TypeReference<T> clazz) |
static <T> T |
toJavaObject(String text,
com.alibaba.fastjson2.TypeReference<T> clazz,
com.alibaba.fastjson2.JSONReader.Feature... features) |
static Object |
toJson(String text) |
static Object |
toJson(String text,
com.alibaba.fastjson2.JSONReader.Feature... features) |
static byte[] |
toJsonBytes(Object target) |
static byte[] |
toJsonBytes(Object target,
com.alibaba.fastjson2.JSONWriter.Feature... features) |
static com.alibaba.fastjson2.JSONArray |
toJsonList(String text) |
static com.alibaba.fastjson2.JSONArray |
toJsonList(String text,
com.alibaba.fastjson2.JSONReader.Feature... features) |
static Object |
toJsonObject(Object obj) |
static Object |
toJsonObject(Object obj,
com.alibaba.fastjson2.JSONWriter.Feature... features) |
static com.alibaba.fastjson2.JSONObject |
toJsonObject(String text) |
static com.alibaba.fastjson2.JSONObject |
toJsonObject(String text,
com.alibaba.fastjson2.JSONReader.Feature... features) |
static String |
toJsonOrJavaString(Object target) |
static String |
toJsonOrJavaString(Object target,
com.alibaba.fastjson2.JSONWriter.Feature... features) |
static String |
toJsonPrettyString(Object target) |
static String |
toJsonPrettyString(Object target,
com.alibaba.fastjson2.JSONWriter.Feature... features) |
static String |
toJsonPrettyStringOrNull(Object target) |
static String |
toJsonPrettyStringOrNull(Object target,
com.alibaba.fastjson2.JSONWriter.Feature... features) |
static String |
toJsonString(Object target) |
static String |
toJsonString(Object target,
com.alibaba.fastjson2.JSONWriter.Feature... features) |
static String |
toJsonStringOrNull(Object target) |
static String |
toJsonStringOrNull(Object target,
com.alibaba.fastjson2.JSONWriter.Feature... features) |
static <T> Type |
toType(com.alibaba.fastjson2.TypeReference<T> type) |
public static com.alibaba.fastjson2.JSONReader.Feature[] getDefaultReaderFeatures()
public static com.alibaba.fastjson2.JSONWriter.Feature[] getDefaultWriterFeatures()
public static byte[] toJsonBytes(Object target)
public static byte[] toJsonBytes(Object target, com.alibaba.fastjson2.JSONWriter.Feature... features)
public static String toJsonString(Object target, com.alibaba.fastjson2.JSONWriter.Feature... features)
public static String toJsonStringOrNull(Object target, com.alibaba.fastjson2.JSONWriter.Feature... features)
public static String toJsonPrettyString(Object target, com.alibaba.fastjson2.JSONWriter.Feature... features)
public static String toJsonPrettyStringOrNull(Object target, com.alibaba.fastjson2.JSONWriter.Feature... features)
public static String toJsonOrJavaString(Object target, com.alibaba.fastjson2.JSONWriter.Feature... features)
public static Object toJsonObject(Object obj, com.alibaba.fastjson2.JSONWriter.Feature... features)
public static Object toJson(String text, com.alibaba.fastjson2.JSONReader.Feature... features)
public static com.alibaba.fastjson2.JSONObject toJsonObject(String text)
public static com.alibaba.fastjson2.JSONObject toJsonObject(String text, com.alibaba.fastjson2.JSONReader.Feature... features)
public static com.alibaba.fastjson2.JSONArray toJsonList(String text)
public static com.alibaba.fastjson2.JSONArray toJsonList(String text, com.alibaba.fastjson2.JSONReader.Feature... features)
public static <T> T toJavaObject(String json, TypeRef<T> type, com.alibaba.fastjson2.JSONReader.Feature... features)
public static <T> T toJavaObject(String text, Type type, com.alibaba.fastjson2.JSONReader.Feature... features)
public static <T> T toJavaObject(String text, Class<T> clazz, com.alibaba.fastjson2.JSONReader.Feature... features)
public static <T> T toJavaObject(String text, com.alibaba.fastjson2.TypeReference<T> clazz)
public static <T> T toJavaObject(String text, com.alibaba.fastjson2.TypeReference<T> clazz, com.alibaba.fastjson2.JSONReader.Feature... features)
public static <T> List<T> toJavaList(String text, Type type, com.alibaba.fastjson2.JSONReader.Feature... features)
public static <T> List<T> toJavaList(String text, Class<T> clazz, com.alibaba.fastjson2.JSONReader.Feature... features)
public static <T> Type toType(com.alibaba.fastjson2.TypeReference<T> type)
Copyright © 2024 fossc. All rights reserved.