Package org.bson.json

Class JsonReader

    • Constructor Detail

      • JsonReader

        public JsonReader​(String json)
        Constructs a new instance with the given string positioned at a JSON object.
        Parameters:
        json - A string representation of a JSON object.
      • JsonReader

        public JsonReader​(Reader reader)
        Constructs a new instance with the given Reader positioned at a JSON object.

        The application is responsible for closing the Reader.

        Parameters:
        reader - A reader representation of a JSON object.
        Since:
        3.11
    • Method Detail

      • doReadDecimal128

        public Decimal128 doReadDecimal128()
      • mark

        @Deprecated
        public void mark()
        Deprecated.
        Description copied from interface: BsonReader
        Creates a bookmark in the BsonReader's input The previous mark must be cleared before creating a new one
      • getMark

        public BsonReaderMark getMark()
        Description copied from interface: BsonReader
        Gets a mark representing the current state of the reader.
        Returns:
        the mark
      • reset

        @Deprecated
        public void reset()
        Deprecated.
        Description copied from interface: BsonReader
        Go back to the state at the last mark and removes the mark