private static String asHexString(IndexedTensor tensor) {
        return asHexString(tensor.sizeAsInt(),
                           tensor.type().valueType(),
                           i -> tensor.get(i),
                           i -> tensor.getFloat(i));
    }
Serializes the given tensor type and value into a short-form JSON format.

@deprecated use #encode(#Tensor, boolean, boolean)
vespajlib/src/main/java/com/yahoo/tensor/serialization/JsonFormat.java