use of org.noggit.JSONWriter in project lucene-solr by apache.
the class TestDelegationTokenResponse method getMapJson.
private String getMapJson(String key, Object value) {
CharArr out = new CharArr();
JSONWriter w = new JSONWriter(out, 2);
Map<String, Object> map = new HashMap<String, Object>();
map.put(key, value);
w.write(map);
return out.toString();
}
Aggregations