summaryrefslogtreecommitdiff
path: root/json_object.h
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2015-11-28 20:00:30 -0600
committerEric Haszlakiewicz <erh+git@nimenees.com>2015-11-28 20:00:30 -0600
commit316da8581819726597592be6d8ac787120c979bf (patch)
tree3950263ae61c4108f75221c97578d242dd2b72da /json_object.h
parent5a6a3787259f4d1f32a421337a232e9e5369a6a4 (diff)
downloadjson-c-316da8581819726597592be6d8ac787120c979bf.tar.gz
Fix issue #201: add a JSON_C_TO_STRING_NOSLASHESCAPE flag to turn off escaping of forward slashes.
Diffstat (limited to 'json_object.h')
-rw-r--r--json_object.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/json_object.h b/json_object.h
index 67137d8..6951019 100644
--- a/json_object.h
+++ b/json_object.h
@@ -64,6 +64,11 @@ extern "C" {
#define JSON_C_TO_STRING_NOZERO (1<<2)
/**
+ * Don't escape forward slashes.
+ */
+#define JSON_C_TO_STRING_NOSLASHESCAPE (1<<4)
+
+/**
* A flag for the json_object_object_add_ex function which
* causes the value to be added without a check if it already exists.
* Note: it is the responsibilty of the caller to ensure that no