@ComponentProfile(summary="Convert an AdaptrisMessage using \'org.json:json\'") public class BasicJsonDeserializer extends java.lang.Object implements JsonDeserializer
org.json:json
library.
Note that this will coerce something like { "key": string}
(note the failure to quote the
string into something will pass schema validation but isn't valid JSON.
In the adapter configuration file this class is aliased as basic-json-deserializer which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
BasicJsonDeserializer() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserialize(java.lang.String input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deserialize
public java.lang.Object deserialize(java.lang.String input) throws org.json.JSONException
deserialize
in interface JsonDeserializer
org.json.JSONException