private DocumentUpdate createTensorUpdate(String operation, String tensorJson, String tensorFieldName) {
        JsonReader streaming = createReader("""
                                            {
                                              "fields": {
                                                "%s": {
                                                   "%s": %s
                                                }
                                              }
                                            }""".formatted(tensorFieldName, operation, tensorJson));
        DocumentUpdate lazyParsed = (DocumentUpdate) streaming.readSingleDocumentStreaming(DocumentOperationType.UPDATE, TENSOR_DOC_ID).operation();
        JsonReader reader = createReader("""
                                         [
                                           {
                                             "update": "%s",
                                             "fields": {
                                               "%s": {
                                                 "%s": %s
                                               }
                                             }
                                           }
                                         ]""".formatted(TENSOR_DOC_ID, tensorFieldName, operation, tensorJson));
        DocumentUpdate bufferParsed = (DocumentUpdate) reader.next();
        assertEquals(lazyParsed, bufferParsed);
        return bufferParsed;
    }
Tests parsing of various tensor values set at the root, i.e. no 'cells', 'blocks' or 'values'
document/src/test/java/com/yahoo/document/json/JsonReaderTestCase.java