public final class JsonUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
readBool(com.alibaba.fastjson.JSONObject object,
String key,
boolean defaultValue) |
static Date |
readDate(com.alibaba.fastjson.JSONObject object,
String key) |
static <T> List<T> |
readList(com.alibaba.fastjson.JSONArray list,
Unmarshaller<T> unmarshaller) |
static <T> List<T> |
readList(com.alibaba.fastjson.JSONObject value,
String key,
Unmarshaller<T> unmarshaller) |
static Date |
readOptionalDate(com.alibaba.fastjson.JSONObject object,
String key) |
static Integer |
readOptionalInt(com.alibaba.fastjson.JSONObject object,
String key) |
static Map<String,String> |
readOptionalMap(com.alibaba.fastjson.JSONObject object,
String key) |
static String |
readOptionalString(com.alibaba.fastjson.JSONObject object,
String key) |
static String |
readOptionalString(com.alibaba.fastjson.JSONObject object,
String key,
String defaultValue) |
static List<String> |
readOptionalStrings(com.alibaba.fastjson.JSONObject object,
String key) |
static List<String> |
readStringList(com.alibaba.fastjson.JSONObject object,
String key) |
static String |
serialize(Object object) |
public static <T> List<T> readList(com.alibaba.fastjson.JSONObject value, String key, Unmarshaller<T> unmarshaller)
public static <T> List<T> readList(com.alibaba.fastjson.JSONArray list, Unmarshaller<T> unmarshaller)
public static List<String> readOptionalStrings(com.alibaba.fastjson.JSONObject object, String key)
public static List<String> readStringList(com.alibaba.fastjson.JSONObject object, String key)
public static String readOptionalString(com.alibaba.fastjson.JSONObject object, String key)
public static String readOptionalString(com.alibaba.fastjson.JSONObject object, String key, String defaultValue)
public static boolean readBool(com.alibaba.fastjson.JSONObject object,
String key,
boolean defaultValue)
public static Integer readOptionalInt(com.alibaba.fastjson.JSONObject object, String key)
public static Date readOptionalDate(com.alibaba.fastjson.JSONObject object, String key)
Copyright © 2025. All Rights Reserved.