ValueMap asMap = (ValueMap) valueObject;
StringBuilder builder = new StringBuilder();
builder.append('{');
Iterator<ValueMapEntry> iterator = asMap.iterator();
while (iterator.hasNext()) {
ValueMapEntry entry = iterator.next();
builder.append('"');
builder.append(entry.getKey());
builder.append("\" : ");
builder.append(printValueObject(entry.getValue()));
if (iterator.hasNext()) {
builder.append(" , ");
}
}
builder.append('}');