MCPcopy Create free account
hub / github.com/IBM/Project_CodeNet / jsonml_parse

Function jsonml_parse

tools/json-graph/src/jgflib.c:680–697  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

678 See JsonML-schema.json.
679*/
680Graph 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}

Callers 1

mainFunction · 0.85

Calls 3

parseFunction · 0.85
graph_createFunction · 0.85
jsonml_elementFunction · 0.85

Tested by

no test coverage detected