public static byte[] encode(Tensor tensor) {
        return encode(tensor, false, false);
    }
Serializes the given tensor value into JSON format, in long format, wrapped in an object containing "cells" only.
vespajlib/src/main/java/com/yahoo/tensor/serialization/JsonFormat.java