X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-xreq.c;h=ba6660e618329d1efaba533140ea4e809a09f021;hb=77ca8b40f2d0c8b1cbf9960bd5a5b2aec36fef38;hp=8f246b3c84efd460226685a9d6907fdac22aab2d;hpb=e17ae412245ba9afb33ff6a0f1f665b4d66d4da4;p=src%2Fapp-framework-binder.git diff --git a/src/afb-xreq.c b/src/afb-xreq.c index 8f246b3c..ba6660e6 100644 --- a/src/afb-xreq.c +++ b/src/afb-xreq.c @@ -24,6 +24,9 @@ #include #include +#if !defined(JSON_C_TO_STRING_NOSLASHESCAPE) +#define JSON_C_TO_STRING_NOSLASHESCAPE 0 +#endif #include #include @@ -666,7 +669,7 @@ void afb_xreq_reply_f(struct afb_xreq *xreq, struct json_object *obj, const char const char *afb_xreq_raw(struct afb_xreq *xreq, size_t *size) { struct json_object *obj = xreq_json_cb(xreq_to_req_x2(xreq)); - const char *result = json_object_to_json_string(obj); + const char *result = json_object_to_json_string_ext(obj, JSON_C_TO_STRING_NOSLASHESCAPE); if (size != NULL) *size = strlen(result); return result;