Palete/Gir.vala
authorAlan Knowles <alan@roojs.com>
Tue, 3 Jun 2014 15:34:04 +0000 (23:34 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 3 Jun 2014 15:34:04 +0000 (23:34 +0800)
Palete/Gir.vala

index fe13efc..542e980 100644 (file)
@@ -64,7 +64,7 @@ namespace Palete {
                 r.set_object_member("params", this.toJSONObject(this.params));
             }
             if (this.ctors.size > 0) {
-                r.set_object_member("ctors", this.toJSONObject(this.ctors));
+                r.set_object_member("ctors", this.toJSONObjectArray(this.ctors));
             }
             if (this.methods.size > 0) {
                 r.set_object_member("methods", this.toJSONObject(this.methods));