summaryrefslogtreecommitdiff
path: root/src/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/array.c')
-rw-r--r--src/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/array.c b/src/array.c
index e8898f4..edf7ed9 100644
--- a/src/array.c
+++ b/src/array.c
@@ -74,7 +74,7 @@ struct json *json_array_get(const struct json *json, size_t index) {
}
struct json *json_array_add_object(struct json *dest) {
- struct json *obj = json_new_array();
+ struct json *obj = json_new_object();
json_array_append(dest, obj);
return obj;
}