aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-config.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-07-24 11:47:44 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-07-24 16:28:32 +0200
commit77ca8b40f2d0c8b1cbf9960bd5a5b2aec36fef38 (patch)
tree90a0206c748dde157460dce3524bf88f49552ed6 /src/afb-config.c
parente17ae412245ba9afb33ff6a0f1f665b4d66d4da4 (diff)
json-c: Remove escaping of slashs
By default json-c escapes the slashes. This is almost ugly and unuseful. But the resolution (with JSON_C_TO_STRING_NOSLASHESCAPE) was introduced lately by json-c. Integrate it as much as possible. Change-Id: Ia9c4bee78dc11df1ee9640cb04311991bd860e43 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-config.c')
-rw-r--r--src/afb-config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/afb-config.c b/src/afb-config.c
index 7beabaff..60788700 100644
--- a/src/afb-config.c
+++ b/src/afb-config.c
@@ -26,6 +26,9 @@
#include <ctype.h>
#include <json-c/json.h>
+#if !defined(JSON_C_TO_STRING_NOSLASHESCAPE)
+#define JSON_C_TO_STRING_NOSLASHESCAPE 0
+#endif
#include "verbose.h"
#include "afb-config.h"