| 375 CxJsonWriter cxJsonWriterPretty(bool use_spaces); |
375 CxJsonWriter cxJsonWriterPretty(bool use_spaces); |
| 376 |
376 |
| 377 int cxJsonWrite(void* target, const CxJsonValue* value, |
377 int cxJsonWrite(void* target, const CxJsonValue* value, |
| 378 cx_write_func wfunc, const CxJsonWriter* settings); |
378 cx_write_func wfunc, const CxJsonWriter* settings); |
| 379 |
379 |
| 380 cxmutstr cxJsonToString(CxJsonValue *value, |
380 cxmutstr cxJsonToString( |
| 381 const CxAllocator *allocator); |
381 const CxAllocator *allocator, CxJsonValue *value); |
| 382 |
382 |
| 383 cxmutstr cxJsonToPrettyString(CxJsonValue *value, |
383 cxmutstr cxJsonToPrettyString( |
| 384 const CxAllocator *allocator); |
384 const CxAllocator *allocator, CxJsonValue *value); |
| 385 ``` |
385 ``` |
| 386 |
386 |
| 387 A JSON value can be formatted with the `cxJsonWrite()` function. |
387 A JSON value can be formatted with the `cxJsonWrite()` function. |
| 388 |
388 |
| 389 The `target` can be a stream, a UCX [buffer](buffer.h.md), or anything else that can be written to with a write function. |
389 The `target` can be a stream, a UCX [buffer](buffer.h.md), or anything else that can be written to with a write function. |