接口 JsonValueProcessor
- 所有已知实现类:
JsDateJsonValueProcessor
public interface JsonValueProcessor
Base interface for custom serialization per property.
-
方法概要
修饰符和类型方法说明processArrayValue(Object value, JsonConfig jsonConfig) Processes the value an returns a suitable JSON value.processObjectValue(String key, Object value, JsonConfig jsonConfig) Processes the value an returns a suitable JSON value.
-
方法详细资料
-
processArrayValue
Processes the value an returns a suitable JSON value.- 参数:
value- the input value- 返回:
- a valid JSON value that represents the input value
- 抛出:
JSONException- if an error occurs during transformation
-
processObjectValue
Processes the value an returns a suitable JSON value.- 参数:
key- the name of the propertyvalue- the value of the property- 返回:
- a valid JSON value that represents the input property
- 抛出:
JSONException- if an error occurs during transformation
-