From f2d9c3b4a8f5d67b395e15fbcbb599fb50170e41 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Wed, 12 Jun 2019 16:26:39 +0200 Subject: [PATCH] fix json syntax --- hsarback/src/de/hsadmin/pillar/JsonPillarServlet.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hsarback/src/de/hsadmin/pillar/JsonPillarServlet.java b/hsarback/src/de/hsadmin/pillar/JsonPillarServlet.java index 3b3465f..e1f8254 100644 --- a/hsarback/src/de/hsadmin/pillar/JsonPillarServlet.java +++ b/hsarback/src/de/hsadmin/pillar/JsonPillarServlet.java @@ -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()) {