|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.test4j.json.JSON
public final class JSON
json解码,编码工具类
| 构造方法摘要 | |
|---|---|
JSON()
|
|
| 方法摘要 | ||
|---|---|---|
static String |
toJSON(Object object,
int features)
将对象编码为json串 |
|
static String |
toJSON(Object object,
JSONFeature... features)
将对象编码为json串 |
|
static
|
toObject(JSONObject json,
Map<String,Object> references)
将json字符串反序列为对象 |
|
static
|
toObject(JSONObject json,
Type type,
Map<String,Object> references)
|
|
static
|
toObject(String json)
将json字符串反序列为对象 |
|
static
|
toObject(String json,
Type clazz)
|
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public JSON()
| 方法详细信息 |
|---|
public static final <T> T toObject(String json)
json -
public static final <T> T toObject(String json,
Type clazz)
public static final <T> T toObject(JSONObject json,
Map<String,Object> references)
T - json - clazz - decodingFeatures -
public static final <T> T toObject(JSONObject json,
Type type,
Map<String,Object> references)
public static final String toJSON(Object object,
JSONFeature... features)
object -
public static final String toJSON(Object object,
int features)
object - features -
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||