public class JsonArrayTransformationDriver extends DefaultJsonTransformationDriver
JSONArray.fromObject(Object)
instead of JSONObject.fromObject(Object)
.DefaultJsonTransformationDriver
In the adapter configuration file this class is aliased as json-array-transformation-driver which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
JsonArrayTransformationDriver() |
Modifier and Type | Method and Description |
---|---|
protected net.sf.json.JSONArray |
parse(java.lang.String input)
Parse a JSON array from a string.
|
parseArray, parseObject
getArrayName, getElementName, getForceTopLevelObject, getObjectName, getRootName, getSkipWhitespace, getTrimSpaces, getTypeHintsCompatibility, getTypeHintsEnabled, objectName, setArrayName, setElementName, setForceTopLevelObject, setObjectName, setRootName, setSkipWhitespace, setTrimSpaces, setTypeHintsCompatibility, setTypeHintsEnabled, transform, xmlToJSON
protected net.sf.json.JSONArray parse(java.lang.String input) throws net.sf.json.JSONException
parse
in class DefaultJsonTransformationDriver
input
- The JSON string.net.sf.json.JSONException
- Thrown if the string isn't a valid JSON array.