docs/Writerside/topics/json.h.md

changeset 1594
4b9537f93239
parent 1583
97fc8c55aeea
--- a/docs/Writerside/topics/json.h.md	Sat Dec 13 20:44:57 2025 +0100
+++ b/docs/Writerside/topics/json.h.md	Sat Dec 13 20:47:07 2025 +0100
@@ -340,6 +340,23 @@
 }
 ```
 
+## Clone Values
+
+```C
+#include <cx/json.h>
+
+CxJsonValue* cxJsonClone(const CxJsonValue* value,
+        const CxAllocator* allocator);
+
+CxJsonValue* cxJsonCloneFunc(
+        CxJsonValue* target, const CxJsonValue* source,
+        const CxAllocator* allocator, void *data);
+```
+
+The function `cxJsonClone()` creates a deep clone of the specified value using the specified allocator.
+The function `cxJsonCloneFunc()` is a `cx_clone_func` compatible version of the same function
+(the `data` argument is unused).
+
 ## Writer
 
 ```C

mercurial