| 474 |
474 |
| 475 |
475 |
| 476 /** |
476 /** |
| 477 * Produces a compact string representation of the specified JSON value. |
477 * Produces a compact string representation of the specified JSON value. |
| 478 * |
478 * |
| |
479 * @param allocator the allocator for the string |
| 479 * @param value the JSON value |
480 * @param value the JSON value |
| 480 * @param allocator the allocator for the string |
|
| 481 * @return the produced string |
481 * @return the produced string |
| 482 * @see cxJsonWrite() |
482 * @see cxJsonWrite() |
| 483 * @see cxJsonWriterCompact() |
483 * @see cxJsonWriterCompact() |
| 484 * @see cxJsonToPrettyString() |
484 * @see cxJsonToPrettyString() |
| 485 */ |
485 */ |
| 486 cx_attr_nonnull_arg(1) |
486 cx_attr_nonnull_arg(2) |
| 487 CX_EXPORT cxmutstr cxJsonToString(CxJsonValue *value, const CxAllocator *allocator); |
487 CX_EXPORT cxmutstr cxJsonToString(const CxAllocator *allocator, CxJsonValue *value); |
| 488 |
488 |
| 489 /** |
489 /** |
| 490 * Produces a pretty string representation of the specified JSON value. |
490 * Produces a pretty string representation of the specified JSON value. |
| 491 * |
491 * |
| |
492 * @param allocator the allocator for the string |
| 492 * @param value the JSON value |
493 * @param value the JSON value |
| 493 * @param allocator the allocator for the string |
|
| 494 * @return the produced string |
494 * @return the produced string |
| 495 * @see cxJsonWrite() |
495 * @see cxJsonWrite() |
| 496 * @see cxJsonWriterPretty() |
496 * @see cxJsonWriterPretty() |
| 497 * @see cxJsonToString() |
497 * @see cxJsonToString() |
| 498 */ |
498 */ |
| 499 cx_attr_nonnull_arg(1) |
499 cx_attr_nonnull_arg(2) |
| 500 CX_EXPORT cxmutstr cxJsonToPrettyString(CxJsonValue *value, const CxAllocator *allocator); |
500 CX_EXPORT cxmutstr cxJsonToPrettyString(const CxAllocator *allocator, CxJsonValue *value); |
| 501 |
501 |
| 502 /** |
502 /** |
| 503 * Initializes the JSON interface. |
503 * Initializes the JSON interface. |
| 504 * |
504 * |
| 505 * @param json the JSON interface |
505 * @param json the JSON interface |