接口 JsonValueProcessor

所有已知实现类:
JsDateJsonValueProcessor

public interface JsonValueProcessor
Base interface for custom serialization per property.
  • 方法详细资料

    • processArrayValue

      Object processArrayValue(Object value, JsonConfig jsonConfig)
      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

      Object processObjectValue(String key, Object value, JsonConfig jsonConfig)
      Processes the value an returns a suitable JSON value.
      参数:
      key - the name of the property
      value - the value of the property
      返回:
      a valid JSON value that represents the input property
      抛出:
      JSONException - if an error occurs during transformation