@Test
    public void testOldMap() throws IOException {
        Document doc = docFromJson("""
                                   {
                                     "put": "id:unittest:testmap::whee",
                                     "fields": {
                                       "actualmap": [
                                         {
                                           "key": "nalle",
                                           "value": "kalle"
                                         },
                                         {
                                           "key": "tralle",
                                           "value": "skalle"
                                         }
                                       ]
                                     }
                                   }
                                   """);
        FieldValue f = doc.getFieldValue(doc.getField("actualmap"));
        assertSame(MapFieldValue.class, f.getClass());
        MapFieldValue<?, ?> m = (MapFieldValue<?, ?>) f;
        assertEquals(2, m.size());
        assertEquals(new StringFieldValue("kalle"), m.get(new StringFieldValue("nalle")));
        assertEquals(new StringFieldValue("skalle"), m.get(new StringFieldValue("tralle")));
    }
Basic test of JSON streams to Vespa document instances.

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