@Test
    public void testStruct() throws IOException {
        Document doc = docFromJson("""
                                   {
                                     "put": "id:unittest:mirrors::whee",
                                     "fields": {
                                       "skuggsjaa": {
                                         "sandra": "person",
                                         "cloud": "another person"
                                       }
                                     }
                                   }
                                   """);
        FieldValue f = doc.getFieldValue(doc.getField("skuggsjaa"));
        assertSame(Struct.class, f.getClass());
        Struct s = (Struct) f;
        assertEquals("person", ((StringFieldValue) s.getFieldValue("sandra")).getString());
    }
Basic test of JSON streams to Vespa document instances.

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