public class ValueDef extends Object
Description of a JSON value as inferred from looking ahead in the JSON stream. Includes a type (which can be empty for an empty array, or null), and an array size (which is 0 for simple values.)

To be clear, this is the JSON parser's best guess at a field type from the input token stream. This is not a description of the desired data type as JSON can only react to what it sees on input.

  • Field Details


      public static final ValueDef UNKNOWN_ARRAY

      public static final ValueDef UNKNOWN
  • Constructor Details

  • Method Details

    • type

      public ValueDef.JsonType type()
    • dimensions

      public int dimensions()
    • isArray

      public boolean isArray()
    • toString

      public String toString()
      toString in class Object
    • jsonTypeFor

      public static ValueDef.JsonType jsonTypeFor(com.fasterxml.jackson.core.JsonToken token)