src/cx/json.h

changeset 1602
7329821fd768
parent 1594
4b9537f93239
child 1607
0ecb13118cac
--- a/src/cx/json.h	Sun Dec 14 15:41:02 2025 +0100
+++ b/src/cx/json.h	Sun Dec 14 15:45:01 2025 +0100
@@ -476,28 +476,28 @@
 /**
  * Produces a compact string representation of the specified JSON value.
  *
+ * @param allocator the allocator for the string
  * @param value the JSON value
- * @param allocator the allocator for the string
  * @return the produced string
  * @see cxJsonWrite()
  * @see cxJsonWriterCompact()
  * @see cxJsonToPrettyString()
  */
-cx_attr_nonnull_arg(1)
-CX_EXPORT cxmutstr cxJsonToString(CxJsonValue *value, const CxAllocator *allocator);
+cx_attr_nonnull_arg(2)
+CX_EXPORT cxmutstr cxJsonToString(const CxAllocator *allocator, CxJsonValue *value);
 
 /**
  * Produces a pretty string representation of the specified JSON value.
  *
+ * @param allocator the allocator for the string
  * @param value the JSON value
- * @param allocator the allocator for the string
  * @return the produced string
  * @see cxJsonWrite()
  * @see cxJsonWriterPretty()
  * @see cxJsonToString()
  */
-cx_attr_nonnull_arg(1)
-CX_EXPORT cxmutstr cxJsonToPrettyString(CxJsonValue *value, const CxAllocator *allocator);
+cx_attr_nonnull_arg(2)
+CX_EXPORT cxmutstr cxJsonToPrettyString(const CxAllocator *allocator, CxJsonValue *value);
 
 /**
  * Initializes the JSON interface.

mercurial