w.name("templates")
.beginArray();
for (TemplateWithAccounts t : templates) {
+ w.beginObject();
+
w.name(Keys.UUID)
.value(t.header.getUuid());
w.name(Keys.NAME)
w.name(Keys.ACCOUNTS)
.beginArray();
for (TemplateAccount a : t.accounts) {
+ w.beginObject();
+
writeKey(w, Keys.NAME, a.getAccountName());
writeKey(w, Keys.NAME_GROUP, a.getAccountNameMatchGroup());
writeKey(w, Keys.COMMENT, a.getAccountComment());
writeKey(w, Keys.NEGATE_AMOUNT, a.getNegateAmount());
writeKey(w, Keys.CURRENCY, a.getCurrency());
writeKey(w, Keys.CURRENCY_GROUP, a.getCurrencyMatchGroup());
+
+ w.endObject();
}
w.endArray();
}
+
+ w.endObject();
}
w.endArray();
}