Parse an explicit JSON tree structure consisting of nested arrays and scalars elements and optional objects for attributes, the result of converting XML to JSON with xml-to-json. See JsonML-schema.json. */
| 678 | See JsonML-schema.json. |
| 679 | */ |
| 680 | Graph jsonml_parse(void) |
| 681 | { |
| 682 | int ntokens; |
| 683 | jsmntok_t *tokens = parse(&ntokens); |
| 684 | |
| 685 | /* Collect all information in internal graph data structure: */ |
| 686 | Graph graph = graph_create(); |
| 687 | |
| 688 | if (debug) |
| 689 | fprintf(stderr, "(D): Parsing the JsonML...\n"); |
| 690 | |
| 691 | jsonml_element(&tokens, graph); |
| 692 | |
| 693 | /* |
| 694 | free((void *)input); |
| 695 | */ |
| 696 | return graph; |
| 697 | } |
no test coverage detected