Too much json code in rootfs
Maksim Dmitrichenko
dmitrmax at gmail.com
Sun Feb 15 04:42:28 PST 2026
Tuning my firmware build for a very resource constrained router, I've
noticed that there are several json-related shared libraries:
1) libjson-c
2) libblobmsg_json
3) libjson_script
4) libjansson
and maybe even more.
I understand that some of them are built on top of each other but
libjson-c and libjansson seem to provide almost the same
functionality. libjansson comes from libnftables and this dependency
is pretty hard to break because libnftables heavily utilizes the
json_pack feature of jansson which is absent in libjson-c.
But it seems that libjson-c has nothing that can't be taken from
jansson. libnftables dependency is quite fundamental and can't be
avoided. But it seems that the other stuff can be switched to jansson.
Are there any plans to do it?
--
With best regards
Maksim Dmitrichenko
More information about the openwrt-devel
mailing list