@Test
    public void feedWithBasicErrorTest() {
        JsonReader r = createReader("""
                                    [
                                      {
                                        "put": "id:test:smoke::0",
                                        "fields": {
                                          "something": "foo"
                                        }
                                      },
                                      {
                                        "put": "id:test:smoke::1",
                                        "fields": {
                                          "something": "foo"
                                        }
                                      },
                                      {
                                        "put": "id:test:smoke::2",
                                        "fields": {
                                          "something": "foo"
                                        }
                                      },
                                    ]"""); // Trailing comma in array ...
        assertTrue(assertThrows(RuntimeException.class,
                                () -> { while (r.next() != null); })
                           .getMessage().contains("JsonParseException"));
    }
Basic test of JSON streams to Vespa document instances.

@author Steinar Knutsen
@author bratseth
document/src/test/java/com/yahoo/document/json/JsonReaderTestCase.java