Hi all,

I'm currently trying to use jshn.sh but it changes the data and makes it
unusable.

Below an example:

root@LEDE:~# json_string="{ \"foo-bar\": 10 }"
root@LEDE:~# echo $json_string
{ "foo-bar": 10 }
root@LEDE:~# json_init
root@LEDE:~# json_load "$json_string"
root@LEDE:~# json_dump
{ "foo_bar": 10 }

Expected would be the same output as input. Is this a bug or a feature?

Context:

Running snapshot build. I'm trying to use rpcd-mod-packagelist [1] but
as e.g. "kmod-r8169" becomes "kmod_r8169" it's useless.

Best,

Paul Spooren

[1]:
https://github.com/openwrt/packages/tree/master/utils/rpcd-mod-packagelist


_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to