Add json output for client/server mode
[fio.git] / json.h
diff --git a/json.h b/json.h
index 4d05e82302522b67c387b0c30470bcb5eda4eea3..2a798ceb4b06d4fc41203096fbb3eb9f4f9749b2 100644 (file)
--- a/json.h
+++ b/json.h
@@ -73,5 +73,8 @@ int json_array_add_value_type(struct json_array *array, int type, ...);
 #define json_array_add_value_array(obj, val) \
        json_array_add_value_type((obj), JSON_TYPE_ARRAY, (val))
 
 #define json_array_add_value_array(obj, val) \
        json_array_add_value_type((obj), JSON_TYPE_ARRAY, (val))
 
+#define json_array_last_value_object(obj) \
+       (obj->values[obj->value_cnt - 1]->object)
+
 void json_print_object(struct json_object *obj);
 #endif
 void json_print_object(struct json_object *obj);
 #endif