com.fasterxml.jackson.databind.deser

Interface NullValueProvider

    • Method Detail

      • getNullValue

        Object getNullValue(DeserializationContext ctxt)
                     throws JsonMappingException
        Method called to possibly convert incoming `null` token (read via underlying streaming input source) into other value of type accessor supports. May return `null`, or value compatible with type binding.

        NOTE: if getNullAccessPattern() returns `ALWAYS_NULL` or `CONSTANT`, this method WILL NOT use provided `ctxt` and it may thus be passed as `null`.

        Throws:
        JsonMappingException
      • getNullAccessPattern

        AccessPattern getNullAccessPattern()
        Accessor that may be used to determine if and when provider must be called to access null replacement value.

Copyright © 2008–2019 FasterXML. All rights reserved.