public static void serializeString(JsonGenerator generator, FieldBase field, String value) {
        fieldNameIfNotNull(generator, field);
        wrapIOException(() -> generator.writeString(value));
    }
@author Steinar Knutsen
@author Vegard Sjonfjell
document/src/main/java/com/yahoo/document/json/JsonSerializationHelper.java