Subject: | "Wide character in print" in json_pp |
As reported on the Debian BTS at <https://bugs.debian.org/880798>, when outputting JSON containing UTF8 characters with this tool, this warning is observed.
$ cat /tmp/test.json
{"foo": "\u9996" }
$ json_pp < /tmp/test.json
Wide character in print at /usr/bin/json_pp line 82, <STDIN> chunk 1.
{
"foo" : "首"
}
$ json_pp -json_opt utf8,pretty < /tmp/test.json
{
"foo" : "首"
}
Would it be possible to avoid the need to pass utf8 as an option when literal utf8 will be printed, thus avoiding this confusing warning?
Cheers,
Dominic.