444546474849505152
properties.putAll(jsonReader.readObject()); } public String toJsonString() throws IOException { StringWriter stringWriter = new StringWriter(); new JsonWriter(stringWriter).writeMap(properties); stringWriter.flush(); return stringWriter.toString(); }
241242243244245246247248249
} public synchronized String toJsonString() { Map<String, Object> map = asMap(); StringWriter writer = new StringWriter(); new JsonWriter(writer).write(map); writer.flush(); return writer.toString(); }
62636465666768697071
for(RebalanceTaskInfo rebalanceTaskInfo: stealInfoMap.values()) maps.add(rebalanceTaskInfo.asMap()); StringWriter stringWriter = new StringWriter(); new JsonWriter(stringWriter).write(maps); stringWriter.flush(); return stringWriter.toString(); }