private StringBuilder writeJson(JsonFormat.EncodeOptions tensorOptions, StringBuilder target) {
        if (isEmpty()) return target.append("{}");

        //implement instead of this:
        if (encodedValues != null && ! mutated) {
            return JsonRender.render(encodedValues, new Encoder(target, true, tensorOptions));
        }
        else {
            decodeAll();
            return writeJson(values, tensorOptions, target);
        }
    }
Returns the fields of this as an inspector, where tensors are represented as binary data
which can be decoded using
<code>com.yahoo.tensor.serialization.TypedBinaryFormat.decode(Optional.empty(), GrowableByteBuffer.wrap(featureValue.asData()))</code>
container-search/src/main/java/com/yahoo/search/result/FeatureData.java