src/json.c

changeset 1565
fb314eeca7a4
parent 1564
500e3c744d87
child 1567
f60f23b362e9
equal deleted inserted replaced
1564:500e3c744d87 1565:fb314eeca7a4
792 return result; 792 return result;
793 } 793 }
794 794
795 CxJsonStatus cx_json_from_string(const CxAllocator *allocator, 795 CxJsonStatus cx_json_from_string(const CxAllocator *allocator,
796 cxstring str, CxJsonValue **value) { 796 cxstring str, CxJsonValue **value) {
797 *value = NULL; 797 *value = &cx_json_value_nothing;
798 CxJson parser; 798 CxJson parser;
799 cxJsonInit(&parser, allocator); 799 cxJsonInit(&parser, allocator);
800 if (cxJsonFill(&parser, str)) { 800 if (cxJsonFill(&parser, str)) {
801 // LCOV_EXCL_START 801 // LCOV_EXCL_START
802 cxJsonDestroy(&parser); 802 cxJsonDestroy(&parser);

mercurial