Code

src/graph_list.c: First take at writing the graph list to disk.
[collection4.git] / src / graph.c
index f664be1367adacda63196ff4d511006fabe48b5e..b654a1f30e26edb3f8fa4983c028f23c9095d3a7 100644 (file)
@@ -627,6 +627,9 @@ int graph_to_json (const graph_config_t *cfg,
       (unsigned char *) "select",
       (unsigned int) strlen ("select"));
   ident_to_json (cfg->select, handler);
+  yajl_gen_string (handler,
+      (unsigned char *) "instances",
+      (unsigned int) strlen ("instances"));
   yajl_gen_array_open (handler);
   for (i = 0; i < cfg->instances_num; i++)
     inst_to_json (cfg->instances[i], handler);