public class JsonUtils extends Object
| Constructor and Description |
|---|
JsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends GlobalReturnCode> |
buildRequestResult(com.alibaba.fastjson.JSONObject resp,
Class<T> t) |
static GlobalReturnCode |
buildSendResult(com.alibaba.fastjson.JSONObject resp) |
static boolean |
getBoolean(com.alibaba.fastjson.JSONObject json,
String key) |
static boolean |
getBoolean(com.alibaba.fastjson.JSONObject json,
String key,
boolean defaultValue) |
static int |
getInt(com.alibaba.fastjson.JSONObject json,
String key) |
static int |
getInt(com.alibaba.fastjson.JSONObject json,
String key,
int defaultValue) |
static String |
getString(com.alibaba.fastjson.JSONObject json,
String key) |
public static int getInt(com.alibaba.fastjson.JSONObject json,
String key)
public static int getInt(com.alibaba.fastjson.JSONObject json,
String key,
int defaultValue)
public static boolean getBoolean(com.alibaba.fastjson.JSONObject json,
String key)
public static boolean getBoolean(com.alibaba.fastjson.JSONObject json,
String key,
boolean defaultValue)
public static GlobalReturnCode buildSendResult(com.alibaba.fastjson.JSONObject resp)
public static <T extends GlobalReturnCode> T buildRequestResult(com.alibaba.fastjson.JSONObject resp, Class<T> t)
Copyright © 2012–2020 Wudao Software Studio. All rights reserved.