[LEDE-DEV] About /etc/board.json

Karl Palsson karlp at tweak.net.au
Wed Aug 9 03:28:03 PDT 2017


Jo-Philipp Wich <jo at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.html
Type: application/pgp-signature
Size: 1161 bytes
Desc: OpenPGP Digital Signature
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20170809/b939808e/attachment.sig>


More information about the Lede-dev mailing list