public static void serializeTensorField(JsonGenerator generator, FieldBase field, TensorFieldValue value,
                                            boolean shortForm, boolean directValues) {
        serializeTensorField(generator, field, value, new JsonFormat.EncodeOptions(shortForm, directValues));

    }
@author Steinar Knutsen
@author Vegard Sjonfjell
document/src/main/java/com/yahoo/document/json/JsonSerializationHelper.java