Jo-Philipp Wich <j...@mein.io> wrote: > > > - There is already a JSON parsing/generation Lua library of choice > > in LEDE? (I suppose there is at least in Luci) > > Package "luci-lib-jsonc" - despite its name it is mostly > standalone, only depending on liblua and libjson-c. > > API docs at > http://htmlpreview.github.io/?http://raw.githubusercontent.com/openwrt/luci/master/documentation/api/modules/luci.jsonc.html >
Given that it is completely standalone, would you mind if I spent some time making a luarocks module for it? It would make it easier to use this on host systems, so we can use "one" lua json library everywhere. I've been using dkjson/lua-cjson in the past, but with json-c (the library) already installed, and luci-lib-json-c already installed, and with C apps also using json-c, it would be nice to drop the extra dependencies, but installing luci on development hosts is a pain. Alternatively of course, simply splitting this completely out of luci altogether, as it has nothing in common with it apart from the namespace and the source repository. Simply adding a luarocks file is probably less intrusive though :) Cheers, Karl Palsson
signature.html
Description: OpenPGP Digital Signature
_______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev