@Test
  void nextTokenWithoutReadingValue() throws JsonParseException {
    BsonParser p = Parsers.createParser("{ \"a\" : 1.1, \"b\": true }");
    assertToken(JsonToken.START_OBJECT, p.nextToken());
    assertToken(JsonToken.FIELD_NAME, p.nextToken());
    assertToken(JsonToken.VALUE_NUMBER_FLOAT, p.nextToken());
    assertToken(JsonToken.FIELD_NAME, p.nextToken());
    assertToken(JsonToken.VALUE_TRUE, p.nextToken());
    assertToken(JsonToken.END_OBJECT, p.nextToken());
    assertNull(p.nextToken());
  }
Just traverse the stream without reading any values
criteria/mongo/test/org/immutables/criteria/mongo/bson4jackson/BsonParserTreeTest.java