Parse a string to get a json. */
| 70 | |
| 71 | /* Parse a string to get a json. */ |
| 72 | json_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. */ |
| 85 | json_t const* json_create( char* str, json_t mem[], unsigned int qty ) { |
no test coverage detected