Interface JsonReader

    • Method Detail

      • names

        void names​(PropertyNames names)
        Set the current property names.

        Can be used by the reader to optimise the reading of known names.

      • endArray

        void endArray()
        Read array end.
      • hasNextElement

        boolean hasNextElement()
        Return true if there is a next element in an ARRAY.
      • endObject

        void endObject()
        Read end object.
      • hasNextField

        boolean hasNextField()
        Return true if there is a next field to be read in an OBJECT.
      • isNullValue

        boolean isNullValue()
        Return true if the value to be read is a null.
      • readBoolean

        boolean readBoolean()
        Read and return the next value as a boolean.
      • readInt

        int readInt()
        Read and return the next value as an int.
      • readLong

        long readLong()
        Read and return the next value as a long.
      • readDouble

        double readDouble()
        Read and return the next value as a double.
      • location

        String location()
        Return the current location. This is typically used when reporting errors.
      • skipValue

        void skipValue()
        Skip the next value.
      • unmappedField

        void unmappedField​(String fieldName)
        Reading json with an unmapped field, throw an Exception if failOnUnmapped is true.