| 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); |