use of org.apache.jackrabbit.oak.commons.json.JsopWriter in project jackrabbit-oak by apache.
the class LuceneJournalPropertyBuilder method buildAsString.
@Override
public String buildAsString() {
JsopWriter json = new JsopBuilder();
json.object();
for (Map.Entry<String, Collection<String>> e : indexedNodes.asMap().entrySet()) {
json.key(e.getKey()).array();
for (String v : e.getValue()) {
json.value(v);
}
json.endArray();
}
json.endObject();
return json.toString();
}
Aggregations