| 338 "ints": [4, 8, 15, [16, 23], 42] |
338 "ints": [4, 8, 15, [16, 23], 42] |
| 339 } |
339 } |
| 340 } |
340 } |
| 341 ``` |
341 ``` |
| 342 |
342 |
| |
343 ## Clone Values |
| |
344 |
| |
345 ```C |
| |
346 #include <cx/json.h> |
| |
347 |
| |
348 CxJsonValue* cxJsonClone(const CxJsonValue* value, |
| |
349 const CxAllocator* allocator); |
| |
350 |
| |
351 CxJsonValue* cxJsonCloneFunc( |
| |
352 CxJsonValue* target, const CxJsonValue* source, |
| |
353 const CxAllocator* allocator, void *data); |
| |
354 ``` |
| |
355 |
| |
356 The function `cxJsonClone()` creates a deep clone of the specified value using the specified allocator. |
| |
357 The function `cxJsonCloneFunc()` is a `cx_clone_func` compatible version of the same function |
| |
358 (the `data` argument is unused). |
| |
359 |
| 343 ## Writer |
360 ## Writer |
| 344 |
361 |
| 345 ```C |
362 ```C |
| 346 #include <cx/json.h> |
363 #include <cx/json.h> |
| 347 |
364 |