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();
|
final PrintWriter writer = resp.getWriter();
|
||||||
writer.println("{");
|
writer.println("{");
|
||||||
writer.println(" \"hivename\": \"" + hive.getHiveName() + "\"");
|
writer.println(" \"hivename\": \"" + hive.getHiveName() + "\"");
|
||||||
writer.println(" \"hiveipv4\": \"" + hive.getInetAddr().getInet4Addr() + "\"");
|
writer.println(" , \"hiveipv4\": \"" + hive.getInetAddr().getInet4Addr() + "\"");
|
||||||
try {
|
try {
|
||||||
writer.println(" \"hiveipv6\": \"" + hive.getInetAddr().getInet6Addr() + "\"");
|
writer.println(" , \"hiveipv6\": \"" + hive.getInetAddr().getInet6Addr() + "\"");
|
||||||
} catch (ProcessorException e) {
|
} catch (ProcessorException e) {
|
||||||
// dont care
|
// dont care
|
||||||
}
|
}
|
||||||
writer.println(" \"pacs\": [");
|
writer.println(" , \"pacs\": [");
|
||||||
final Iterator<?> pacsIterator = pacsResult.iterator();
|
final Iterator<?> pacsIterator = pacsResult.iterator();
|
||||||
boolean firstLoop = true;
|
boolean firstLoop = true;
|
||||||
while (pacsIterator.hasNext()) {
|
while (pacsIterator.hasNext()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user