public class JSONValueMapper extends Object implements Serializable
null| Constructor and Description |
|---|
JSONValueMapper(JSONConfig jsonConfig)
构造
|
| Modifier and Type | Method and Description |
|---|---|
Object |
map(Object object)
在需要的时候转换映射对象
包装包括: array or collection =》 JSONArray map =》 JSONObject standard property (Double, String, et al) =》 原对象 来自于java包 =》 字符串 其它 =》 尝试包装为JSONObject,否则返回 null
|
static JSONValueMapper |
of(JSONConfig jsonConfig)
创建ObjectMapper
|
public JSONValueMapper(JSONConfig jsonConfig)
jsonConfig - JSON配置public static JSONValueMapper of(JSONConfig jsonConfig)
jsonConfig - 来源对象Copyright © 2024. All rights reserved.