@JsonProperty("scatter")
    public Map<String, List<Dot>> getScatter() {
        final Map<String, List<Dot>> scatterAgentData = new HashMap<>();
        for (Dot dot : scatter) {
            List<Dot> list = scatterAgentData.computeIfAbsent(dot.getAgentId(), k -> new ArrayList<>());
            list.add(dot);
        }

        return scatterAgentData;
    }
To be used with @ResponseBody.

@author emeroad
web/src/main/java/com/navercorp/pinpoint/web/vo/scatter/ScatterScanResult.java