[OpenWrt-Devel] /usr/share/libubox/jshn.sh and piping json text to json_load
Michael Jones
mike at meshplusplus.com
Sat Jun 13 17:53:17 EDT 2020
Hi List,
I'm looking to load some json text that's being piped through grep / sed /
awk into the json handling capabilities provided by
/usr/share/libubox/jshn.sh
Looking here:
https://git.openwrt.org/?p=project/libubox.git;a=blob;f=jshn.c;h=1b685e5fb0d853c4053389242b92c34967beb94f;hb=HEAD
I don't see any kind of handling of stdin. So I'm guessing that piping data
into the shell json handling code isn't an expected use case.
Does anyone have any suggestions beyond the obvious solution of loading the
data into a shell variable first?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200613/9f72a4ba/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list