dumper.indent();
analyze(dumper, obj);
dumper.outdent();
}
} else if (value instanceof JsonArray) {
JsonArray ar = (JsonArray) value;
if (ar.size() == 0) {
dumper.line("%: []", key);
} else if (ar.get(0) instanceof JsonObject) {
dumper.line("%: array", key);
dumper.indent();
analyze(dumper, (JsonObject) ar.get(0));
dumper.outdent();
} else {
dumper.line("%: [%, ...]", key, ar.get(0));
}
} else {
dumper.line("%: %", key, value);
}
}