json.beginCollection(1, true, "dbs");
Map<String, OResourcePool<String, ODatabaseDocumentTx>> dbPool = OSharedDocumentDatabase.getDatabasePools();
for (Entry<String, OResourcePool<String, ODatabaseDocumentTx>> entry : dbPool.entrySet()) {
for (ODatabaseDocumentTx db : entry.getValue().getResources()) {
json.beginObject(2);
writeField(json, 2, "db", db.getName());
writeField(json, 2, "user", db.getUser() != null ? db.getUser().getName() : "-");
writeField(json, 2, "open", db.isClosed() ? "closed" : "open");
writeField(json, 2, "storage", db.getStorage().getClass().getSimpleName());
json.endObject(2);