throws Exception
  private void encodeObject(StringBuilderValue sb, ObjectValue val)  {      sb.append('{');      int length = 0;      for (Map.Entry<String,Value> entry : val.entrySet()) {        if (length > 0)          sb.append(',');        jsonEncodeImpl(sb, new StringValueImpl(entry.getKey()));        sb.append(':');        jsonEncodeImpl(sb, entry.getValue());        length++;      }      sb.append('}');  }