Interface JsonExtract.JsonExtractor<T>

All Known Implementing Classes:
JsonExtract.JsonSizeExtractor, JsonExtract.JsonValueJsonExtractor, JsonExtract.ObjectFieldJsonExtractor, JsonExtract.ScalarValueJsonExtractor
Enclosing class:
JsonExtract

public static interface JsonExtract.JsonExtractor<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    extract(com.fasterxml.jackson.core.JsonParser jsonParser)
    Executes the extraction on the existing content of the JsonParser and outputs the match.
  • Method Details

    • extract

      T extract(com.fasterxml.jackson.core.JsonParser jsonParser) throws IOException
      Executes the extraction on the existing content of the JsonParser and outputs the match.

      Notes:

      • JsonParser must be on the FIRST token of the value to be processed when extract is called
      • INVARIANT: when extract() returns, the current token of the parser will be the LAST token of the value
      Returns:
      the value, or null if not applicable
      Throws:
      IOException