void print_json_object(json_t *element, int indent) { print_json_indent(indent); size_t size = json_object_size(element); const char *key; json_t *value; printf("JSON Object of %ld pair%s:\n", size, json_plural(size)); json_object_foreach(element, key, value) { print_json_indent(indent + 2); printf("JSON Key: \"%s\"\n", key); print_json_aux(value, indent + 2); }
void list_json_object(json_t *element, int indent, FolderListing **ls) { size_t size; const char *key; json_t *value; print_json_indent(indent); size = json_object_size(element); printf("JSON Object of %ld pairs\n", size); json_object_foreach(element, key, value) { print_json_indent(indent + 2); printf("JSON Key: \"%s\"\n", key); check_list_type(value, indent + 2, ls, key); }
void command_json_object(json_t *element, int indent) { size_t size; const char *key; json_t *value; print_json_indent(indent); size = json_object_size(element); printf("JSON Object of %ld pair:\n", size); json_object_foreach(element, key, value) { print_json_indent(indent + 2); printf("JSON Key: \"%s\"\n", key); command_type(value, indent + 2, key); }
void handle_json_object(json_t *element, int indent, GdaList **gda) { size_t size; const char *key; json_t *value; print_json_indent(indent); size = json_object_size(element); printf("JSON Object of %ld pair%s:\n", size, json_plural_size(size)); json_object_foreach(element, key, value) { print_json_indent(indent + 2); printf("JSON Key: \"%s\"\n", key); check_light_type(value, indent + 2, gda, key); }
void list_json_null(json_t *element, int indent, FolderListing **ls) { (void)element; print_json_indent(indent); printf("JSON Null\n"); }
void command_json_null(json_t *element, int indent) { (void)element; print_json_indent(indent); printf("JSON Null\n"); }
void handle_json_null(json_t *element, int indent, GdaList **gda) { (void)element; print_json_indent(indent); printf("JSON Null\n"); }