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 Details

    • read

      default Object read(Object jOb, Deque<JsonObject> stack, ReaderContext context)
      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

      default Object read(Object jOb, Deque<JsonObject> stack)
      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.