@Test
    public void readSingleDocumentsPutStreaming() throws IOException {
        String json = """
                      {
                        "remove": "id:unittest:smoke::ignored",
                        "ignored-extra-array": [{ "foo": null }, { }],
                        "ignored-extra-object": { "foo": [null, { }], "bar": { } },
                        "fields": {
                          "something": "smoketest",
                          "flag": true,
                          "nalle": "bamse"
                        },
                        "id": "id:unittest:smoke::ignored",
                        "create": false,
                        "condition": "true"
                      }
                      """;
        ParsedDocumentOperation operation = createReader(json).readSingleDocumentStreaming(DocumentOperationType.PUT,"id:unittest:smoke::doc1");
        DocumentPut put = ((DocumentPut) operation.operation());
        assertFalse(put.getCreateIfNonExistent());
        assertEquals("true", put.getCondition().getSelection());
        smokeTestDoc(put.getDocument());
    }
Basic test of JSON streams to Vespa document instances.

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