Class ObjectReader
java.lang.Object
com.aquima.interactions.communication.data.serialization.json.ObjectReader
Reads a Json string to a DataObject.
This implementation is immutable and therefore thread safe.
- Since:
- 9.3
- Author:
- A.Pragt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread
(Reader source, DataValueType type) Reads a string to a DataObjectread
(String json, DataValueType type) Reads a string to a DataObject
-
Constructor Details
-
Method Details
-
read
Reads a string to a DataObject- Parameters:
source
- The source data to parse, not null.type
- The type description of the data to be deserialized, not null.- Returns:
- The DataValue representing the data.
- Throws:
RuntimeException
- In case of a parse exception.IOException
- In case of problems during data retrieval.
-
read
Reads a string to a DataObject- Parameters:
json
- The json data to parse, not null.type
- The type description of the data to be deserialized, not null.- Returns:
- The DataObject representing the data.
- Throws:
RuntimeException
- In case of a parse exception.
-