@Test
    public void testArray() throws IOException {
        Document doc = docFromJson("""
                                   {
                                     "put": "id:unittest:testarray::whee",
                                     "fields": {
                                       "actualarray": [
                                         "nalle",
                                         "tralle"
                                       ]
                                     }
                                   }
                                   """);
        FieldValue f = doc.getFieldValue(doc.getField("actualarray"));
        assertSame(Array.class, f.getClass());
        Array<?> a = (Array<?>) f;
        assertEquals(2, a.size());
        assertEquals(new StringFieldValue("nalle"), a.get(0));
        assertEquals(new StringFieldValue("tralle"), a.get(1));
    }
Basic test of JSON streams to Vespa document instances.

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