Package net.sf.json.processors
Interface JsonValueProcessor
-
- All Known Implementing Classes:
JsDateJsonValueProcessor
public interface JsonValueProcessorBase interface for custom serialization per property.- Author:
- Andres Almiray
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectprocessArrayValue(Object value, JsonConfig jsonConfig)Processes the value an returns a suitable JSON value.ObjectprocessObjectValue(String key, Object value, JsonConfig jsonConfig)Processes the value an returns a suitable JSON value.
-
-
-
Method Detail
-
processArrayValue
Object processArrayValue(Object value, JsonConfig jsonConfig)
Processes the value an returns a suitable JSON value.- Parameters:
value- the input value- Returns:
- a valid JSON value that represents the input value
- Throws:
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.- Parameters:
key- the name of the propertyvalue- the value of the property- Returns:
- a valid JSON value that represents the input property
- Throws:
JSONException- if an error occurs during transformation
-
-