{
struct json_object *result, *obj;
struct apprun *runner;
- char runidstr[20];
int i;
/* creates the object */
- result = json_object_new_object();
+ result = json_object_new_array();
if (result == NULL) {
errno = ENOMEM;
return NULL;
json_object_put(result);
return NULL;
}
- sprintf(runidstr, "%d", runner->runid);
/* TODO status ? */
- json_object_object_add(result, runidstr, obj);
+ json_object_array_add(result, obj);
}
}
}