in src/main/java/org/apache/sling/jcr/contentloader/internal/readers/JsonReader.java [237:260]
protected void createProperty(String name, Object value, ContentCreator contentCreator) throws RepositoryException {
// assume simple value
if (value instanceof JsonArray) {
// multivalue
final JsonArray array = (JsonArray) value;
if (!array.isEmpty()) {
final String[] values = new String[array.size()];
for (int i = 0; i < values.length; i++) {
Object u = unbox(array.get(i));
values[i] = u == null ? null : u.toString();
}
final int propertyType = getType(name, unbox(array.get(0)));
contentCreator.createProperty(getName(name), propertyType, values);
} else {
contentCreator.createProperty(getName(name), PropertyType.STRING, new String[0]);
}
} else if (value instanceof JsonValue) {
// single value
value = unbox(value);
if (value != null) {
contentCreator.createProperty(getName(name), getType(name, value), value.toString());
}
}
}