pw.print("\"host\" : \"" + StringEscapeUtils.escapeJava(getHost()) + "\"");
// get the attributes and output them
for (String attr : getAttrs().keySet()) {
String v = Attributes.toStringStrict(this, attr);
Type t = Attributes.getType(attr);
pw.print(", \"" + StringEscapeUtils.escapeJava(attr) + "\" : ");
if (t != null && t == Type.STRING) {
pw.print("\"" + StringEscapeUtils.escapeJava(v) + "\"");
} else {