projects
/
jansson.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add functions for shallow and deep copying JSON values
[jansson.git]
/
src
/
jansson.h
diff --git
a/src/jansson.h
b/src/jansson.h
index
b1b5c4b
..
73f6ce0
100644
(file)
--- a/
src/jansson.h
+++ b/
src/jansson.h
@@
-142,6
+142,12
@@
int json_real_set(json_t *real, double value);
int json_equal(json_t *value1, json_t *value2);
+/* copying */
+
+json_t *json_copy(json_t *value);
+json_t *json_deep_copy(json_t *value);
+
+
/* loading, printing */
#define JSON_ERROR_TEXT_LENGTH 160