예제 #1
0
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);
  }
예제 #2
0
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);
  }
예제 #3
0
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);
  }
예제 #4
0
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);
  }
예제 #5
0
void	list_json_null(json_t *element, int indent, FolderListing **ls) {
  (void)element;
  print_json_indent(indent);
  printf("JSON Null\n");
}
예제 #6
0
void	command_json_null(json_t *element, int indent) {
  (void)element;
  print_json_indent(indent);
  printf("JSON Null\n");
}
예제 #7
0
void handle_json_null(json_t *element, int indent, GdaList **gda) {
  (void)element;
  print_json_indent(indent);
  printf("JSON Null\n");
}