private void setMaxJsonStringFieldLength(Element properties) throws TikaConfigException {
        NodeList nodeList = properties.getChildNodes();
        for (int i = 0; i < nodeList.getLength(); i++) {
            Node n = nodeList.item(i);
            if (n.getNodeName().equals(MAX_JSON_STRING_FIELD_LENGTH_ELEMENT_NAME)) {
                try {
                    MAX_JSON_STRING_FIELD_LENGTH = Integer.parseInt(n.getTextContent());
                } catch (NumberFormatException e) {
                    throw new TikaConfigException(MAX_JSON_STRING_FIELD_LENGTH_ELEMENT_NAME + " " +
                            "is not an integer", e);
                }
                return;
            }
        }
    }
@return maximum field length when serializing String fields in Tika's metadata or metadata
list into JSON
tika-core/src/main/java/org/apache/tika/config/TikaConfig.java