fix json syntax

This commit is contained in:
Peter Hormanns 2019-06-12 16:26:39 +02:00
parent d735e8c616
commit f2d9c3b4a8

View File

@ -52,13 +52,13 @@ public class JsonPillarServlet extends HttpServlet {
final PrintWriter writer = resp.getWriter();
writer.println("{");
writer.println(" \"hivename\": \"" + hive.getHiveName() + "\"");
writer.println(" \"hiveipv4\": \"" + hive.getInetAddr().getInet4Addr() + "\"");
writer.println(" , \"hiveipv4\": \"" + hive.getInetAddr().getInet4Addr() + "\"");
try {
writer.println(" \"hiveipv6\": \"" + hive.getInetAddr().getInet6Addr() + "\"");
writer.println(" , \"hiveipv6\": \"" + hive.getInetAddr().getInet6Addr() + "\"");
} catch (ProcessorException e) {
// dont care
}
writer.println(" \"pacs\": [");
writer.println(" , \"pacs\": [");
final Iterator<?> pacsIterator = pacsResult.iterator();
boolean firstLoop = true;
while (pacsIterator.hasNext()) {