Skip to content

Commit 4ca2c13

Browse files
committed
do not escape forward slashes in JSON output
1 parent e1a4bdc commit 4ca2c13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

programs/ziti-edge-tunnel/ziti-edge-tunnel.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1932,7 +1932,9 @@ static int send_message_to_tunnel(char* message, bool show_result) {
19321932
}
19331933

19341934
if (show_result) {
1935-
printf("%s\n", json_object_to_json_string_ext(json, JSON_C_TO_STRING_PRETTY));
1935+
printf("%s\n",
1936+
json_object_to_json_string_ext(
1937+
json, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE));
19361938
}
19371939
int code = json_object_get_boolean(json_object_object_get(json, "Success")) ?
19381940
0 : json_object_get_int(json_object_object_get(json, "Code"));

0 commit comments

Comments
 (0)