接口 JsonBeanProcessor

所有已知实现类:
JsDateJsonBeanProcessor

public interface JsonBeanProcessor
Base interface for custom serialization per Bean.
  • 方法概要

    修饰符和类型
    方法
    说明
    processBean(Object bean, JsonConfig jsonConfig)
    Processes the bean an returns a suitable JSONObject representation.
  • 方法详细资料

    • processBean

      JSONObject processBean(Object bean, JsonConfig jsonConfig)
      Processes the bean an returns a suitable JSONObject representation.
      参数:
      bean - the input bean
      jsonConfig - the current configuration environment
      返回:
      a JSONObject that represents the input bean
      抛出:
      JSONException - if an error occurs during transformation