@Test(expected=JsonReaderException.class)
    public void testNullArrayElement() throws IOException {
        docFromJson("""
                     {
                       "put": "id:unittest:testnull::doc1",
                       "fields": {
                         "arrayfield": [ null ]
                       }
                     }
                     """);
        fail();
    }
Basic test of JSON streams to Vespa document instances.

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