Lines Matching defs:root
511 json_t *root;
516 root = json_loads(input, 0, &error);
517 if (!root) {
524 if (!json_is_object(root)) {
530 element = json_object_get(root, "type");
547 element = json_object_get(root, "value");
567 json_decref(root);
576 json_t *root;
579 root = json_pack("{s:s, s:s}", "type", "simple", "value", secret);
580 if (!root) {
585 jsonized = json_dumps(root, JSON_INDENT(4));
601 json_decref(root);
611 json_t *root;
614 root = json_array();
615 if (root == NULL) {
624 json_array_append_new(root, json_string(array[i]));
627 jsonized = json_dumps(root, JSON_INDENT(4));
643 json_decref(root);