diff -r 0df5128ab675 -r 4b9537f93239 docs/Writerside/topics/json.h.md --- 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 + +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