| 1441 return str; |
1441 return str; |
| 1442 } |
1442 } |
| 1443 |
1443 |
| 1444 } |
1444 } |
| 1445 |
1445 |
| 1446 cxmutstr cxJsonToString(CxJsonValue *value, const CxAllocator *allocator) { |
1446 cxmutstr cxJsonToString(const CxAllocator *allocator, CxJsonValue *value) { |
| 1447 CxJsonWriter writer = cxJsonWriterCompact(); |
1447 CxJsonWriter writer = cxJsonWriterCompact(); |
| 1448 return cx_json_to_string(value, allocator, &writer); |
1448 return cx_json_to_string(value, allocator, &writer); |
| 1449 } |
1449 } |
| 1450 |
1450 |
| 1451 cxmutstr cxJsonToPrettyString(CxJsonValue *value, const CxAllocator *allocator) { |
1451 cxmutstr cxJsonToPrettyString(const CxAllocator *allocator, CxJsonValue *value) { |
| 1452 CxJsonWriter writer = cxJsonWriterPretty(true); |
1452 CxJsonWriter writer = cxJsonWriterPretty(true); |
| 1453 return cx_json_to_string(value, allocator, &writer); |
1453 return cx_json_to_string(value, allocator, &writer); |
| 1454 } |
1454 } |
| 1455 |
1455 |
| 1456 int cxJsonCompare(const CxJsonValue *json, const CxJsonValue *other) { |
1456 int cxJsonCompare(const CxJsonValue *json, const CxJsonValue *other) { |