MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / json_createWithPool

Function json_createWithPool

External/tiny-json/tiny-json.c:72–82  ·  view source on GitHub ↗

Parse a string to get a json. */

Source from the content-addressed store, hash-verified

70
71/* Parse a string to get a json. */
72json_t const* json_createWithPool( char *str, jsonPool_t *pool ) {
73 char* ptr = goBlank( str );
74 if ( !ptr || *ptr != '{' ) return 0;
75 json_t* obj = pool->init( pool );
76 obj->name = 0;
77 obj->sibling = 0;
78 obj->u.c.child = 0;
79 ptr = objValue( ptr, obj, pool );
80 if ( !ptr ) return 0;
81 return obj;
82}
83
84/* Parse a string to get a json. */
85json_t const* json_create( char* str, json_t mem[], unsigned int qty ) {

Callers 2

json_createFunction · 0.85
CreateJSONFunction · 0.85

Calls 2

goBlankFunction · 0.85
objValueFunction · 0.85

Tested by

no test coverage detected