[json-glib] Use JSON_NODE_OBJECT, not JSON_NODE_ARRAY when creating the node in json_object_set_object_member



commit 68d872f15022217c0ff1cf516aec917d600fd762
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Wed Jun 24 14:07:18 2009 +0200

    Use JSON_NODE_OBJECT, not JSON_NODE_ARRAY when creating the node in json_object_set_object_member
    
    Reviewed by Emmanuele Bassi

 json-glib/json-object.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/json-glib/json-object.c b/json-glib/json-object.c
index 7952274..986277c 100644
--- a/json-glib/json-object.c
+++ b/json-glib/json-object.c
@@ -399,7 +399,7 @@ json_object_set_object_member (JsonObject  *object,
   g_return_if_fail (object != NULL);
   g_return_if_fail (member_name != NULL);
 
-  node = json_node_new (JSON_NODE_ARRAY);
+  node = json_node_new (JSON_NODE_OBJECT);
   json_node_take_object (node, value);
   object_set_member_internal (object, member_name, node);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]