Committed by
Gerrit Code Review
Fix json formating for counters
Change-Id: Ibd506936507752a4911aa2cb0bac3ec916d1da71
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -78,12 +78,12 @@ public class CountersListCommand extends AbstractShellCommand { | ... | @@ -78,12 +78,12 @@ public class CountersListCommand extends AbstractShellCommand { |
78 | // Create a JSON node for partitioned database counter | 78 | // Create a JSON node for partitioned database counter |
79 | ObjectNode jsonPartitionedDatabaseCounters = mapper.createObjectNode(); | 79 | ObjectNode jsonPartitionedDatabaseCounters = mapper.createObjectNode(); |
80 | jsonPartitionedDatabaseCounters.put("partitionedDatabaseCounters", | 80 | jsonPartitionedDatabaseCounters.put("partitionedDatabaseCounters", |
81 | - partitionedDbCounters.toString()); | 81 | + json(partitionedDbCounters)); |
82 | jsonCounters.add(jsonPartitionedDatabaseCounters); | 82 | jsonCounters.add(jsonPartitionedDatabaseCounters); |
83 | // Create a JSON node for in-memory database counter | 83 | // Create a JSON node for in-memory database counter |
84 | ObjectNode jsonInMemoryDatabseCounters = mapper.createObjectNode(); | 84 | ObjectNode jsonInMemoryDatabseCounters = mapper.createObjectNode(); |
85 | jsonInMemoryDatabseCounters.put("inMemoryDatabaseCounters", | 85 | jsonInMemoryDatabseCounters.put("inMemoryDatabaseCounters", |
86 | - inMemoryDbCounters.toString()); | 86 | + json(inMemoryDbCounters)); |
87 | jsonCounters.add(jsonInMemoryDatabseCounters); | 87 | jsonCounters.add(jsonInMemoryDatabseCounters); |
88 | 88 | ||
89 | return jsonCounters; | 89 | return jsonCounters; | ... | ... |
-
Please register or login to post a comment