Class JSONReader


  • public class JSONReader
    extends ValueReader
    Object that handles construction of simple Objects from JSON.

    Life-cycle is such that initial instance (called blueprint) is constructed first (including possible configuration using mutant factory methods). This blueprint object acts as a factory, and is never used for direct writing; instead, per-call instance is created by calling perOperationInstance(int, com.fasterxml.jackson.core.JsonParser).

    • Field Detail

      • _features

        protected final int _features
      • _treeCodec

        protected final com.fasterxml.jackson.core.TreeCodec _treeCodec
      • _typeDetector

        protected final TypeDetector _typeDetector
        Object that is used to resolve types of values dynamically.
      • _mapBuilder

        protected final MapBuilder _mapBuilder
        Handler that takes care of constructing Maps as needed
      • _collectionBuilder

        protected final CollectionBuilder _collectionBuilder
        Handler that takes care of constructing Maps as needed
      • _parser

        protected final com.fasterxml.jackson.core.JsonParser _parser
    • Constructor Detail

      • JSONReader

        public JSONReader​(int features,
                          TypeDetector td,
                          com.fasterxml.jackson.core.TreeCodec treeCodec,
                          CollectionBuilder lb,
                          MapBuilder mb)
        Constructor used for creating the blueprint instances.
      • JSONReader

        protected JSONReader​(JSONReader base,
                             int features,
                             TypeDetector td,
                             com.fasterxml.jackson.core.JsonParser p)
        Constructor used for per-operation (non-blueprint) instance.