Package com.cedarsoftware.util.io
Interface JsonReader.JsonClassReader
- All Known Implementing Classes:
RecordFactory.RecordReader
- Enclosing class:
- JsonReader
public static interface JsonReader.JsonClassReader
Implement this interface to add a custom JSON reader.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
read
(Object jOb, Deque<JsonObject> stack) default Object
read
(Object jOb, Deque<JsonObject> stack, ReaderContext context)
-
Method Details
-
read
- Parameters:
jOb
- Object being read. Could be a fundamental JSON type (String, long, boolean, double, null, or JsonObject)stack
- Deque of objects that have been read (Map of Maps view).context
- reader context to provide assistance reading the object- Returns:
- Java Object you wish to convert the passed in jOb into.
-
read
- Parameters:
jOb
- Object being read. Could be a fundamental JSON type (String, long, boolean, double, null, or JsonObject)stack
- Deque of objects that have been read (Map of Maps view).- Returns:
- Object you wish to convert the jOb value into.
-