fix json syntax
This commit is contained in:
parent
d735e8c616
commit
f2d9c3b4a8
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user