接口 org.test4j.json.helper.JSONObject
的使用

使用 JSONObject 的软件包
org.test4j.json   
org.test4j.json.decoder   
org.test4j.json.decoder.base   
org.test4j.json.decoder.spec   
org.test4j.json.helper   
 

org.test4j.jsonJSONObject 的使用
 

参数类型为 JSONObjectorg.test4j.json 中的方法
static
<T> T
JSON.toObject(JSONObject json, Map<String,Object> references)
          将json字符串反序列为对象
static
<T> T
JSON.toObject(JSONObject json, Type type, Map<String,Object> references)
           
 

org.test4j.json.decoderJSONObject 的使用
 

参数类型为 JSONObjectorg.test4j.json.decoder 中的方法
<T> T
IDecoder.decode(JSONObject from, Type toType, Map<String,Object> references)
          将json串反序列为对象
<T> T
CollectionDecoder.decode(JSONObject json, Type toType, Map<String,Object> references)
           
<T> T
ArrayDecoder.decode(JSONObject json, Type toType, Map<String,Object> references)
           
 

org.test4j.json.decoder.baseJSONObject 的使用
 

参数类型为 JSONObjectorg.test4j.json.decoder.base 中的方法
<E> E
SpecTypeDecoder.decode(JSONObject json, Type toType, Map<String,Object> references)
           
<T> T
MapPoJoBaseDecoder.decode(JSONObject json, Type toType, Map<String,Object> references)
           
<T> T
FixedTypeDecoder.decode(JSONObject json, Type type, Map<String,Object> references)
           
 

org.test4j.json.decoder.specJSONObject 的使用
 

参数类型为 JSONObjectorg.test4j.json.decoder.spec 中的方法
<T> T
SpecDecoder.decode(JSONObject json, Type toType, Map<String,Object> references)
           
 

org.test4j.json.helperJSONObject 的使用
 

实现 JSONObjectorg.test4j.json.helper 中的类
 class JSONArray
           
 class JSONMap
           
 class JSONSingle
          单值对象
 

返回 JSONObjectorg.test4j.json.helper 中的方法
 JSONObject JSONMap.get(Object key)
           
 JSONObject JSONMap.getValueFromJSONProp()
          返回json字符串中value:xxx中xxx表示JSON对象
 JSONObject JSONMap.putJSON(Object key, Object value)
          same as put(key,value)
 JSONObject JSONScanner.scan()
           
static JSONObject JSONScanner.scnJSON(String json)
           
 

类型变量类型为 JSONObjectorg.test4j.json.helper 中的构造方法参数
JSONArray(List<JSONObject> list)
           
JSONMap(Map<JSONObject,JSONObject> map)
           
JSONMap(Map<JSONObject,JSONObject> map)
           
 



Copyright © 2013. All rights reserved.