mirror of
https://github.com/labwc/labwc.git
synced 2026-06-13 14:33:18 -04:00
ipc: remove forward slash escaping in JSON output
This commit is contained in:
parent
c675da04aa
commit
fa8d198082
1 changed files with 3 additions and 2 deletions
|
|
@ -187,8 +187,9 @@ print_json(const char *data, bool pretty)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int flags = pretty ? (JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_SPACED)
|
int flags = JSON_C_TO_STRING_NOSLASHESCAPE
|
||||||
: JSON_C_TO_STRING_PLAIN;
|
| (pretty ? (JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_SPACED)
|
||||||
|
: JSON_C_TO_STRING_PLAIN);
|
||||||
|
|
||||||
printf("%s\n", json_object_to_json_string_ext(obj, flags));
|
printf("%s\n", json_object_to_json_string_ext(obj, flags));
|
||||||
json_object_put(obj);
|
json_object_put(obj);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue