Add functions for shallow and deep copying JSON values
[jansson.git] / src / jansson.h
index b1b5c4b..73f6ce0 100644 (file)
@@ -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