if (name.equals("LIST")) {
result = listToJson(value, valueType.getNestedValueType(), options, namespaces, repository);
} else if (name.equals("PATH")) {
result = pathToJson(value, valueType.getNestedValueType(), options, namespaces, repository);
} else if (name.equals("STRING")) {
result = factory.textNode((String)value);
} else if (name.equals("LONG")) {
result = factory.numberNode((Long)value);
} else if (name.equals("DOUBLE")) {
result = factory.numberNode((Double)value);
} else if (name.equals("BOOLEAN")) {