@Test(expected = IllegalArgumentException.class)
    public void testInvalidFieldAfterFieldsFieldShouldFailParse() {
        String jsonData = """
                          [
                            {
                              "put": "id:unittest:smoke::whee",
                              "fields": {
                                "something": "smoketest",
                                "nalle": "bamse"
                              },
                              "bjarne": "stroustrup"
                            }
                          ]""";

        new JsonReader(types, jsonToInputStream(jsonData), parserFactory).next();
    }
Basic test of JSON streams to Vespa document instances.

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