[OpenWrt Wiki] package: cJSON
openwrt.org › packages › pkgdataDec 12, 2021 · Ultralightweight JSON parser in ANSI C.\\ cJSON aims to be the dumbest possible parser that you can get your\\ job done with. It's a single file of C, and a single header file.\\ \\ Installed size: 11kB Dependencies: libc Categories: libraries Repositories: community-packages Architectures:
Reference - GitHub Pages
https://openwrt.github.io/luci/api/modules/luci.jsonc.htmlstringify (data, pretty) Convert given Lua data into a JSON string. This function recursively converts the given Lua data into a JSON string, ignoring any unsupported data. Lua tables are converted into JSON arrays if they only contain integer keys, mixed tables are turned into JSON objects with any existing numeric keys converted into strings ...
[OpenWrt Wiki] USB mode switch
openwrt.org › docs › guide-userMar 28, 2019 · For diagnostics purpose, you can create usb-mode-custom.json with defined message and devices part and launch the command. usbmode -l usbmode -s -v -c /path/to/usb-mode-custom.json. Converting the standard usb-modeswitch file to json format can be done in a simple way. The standard usb-modeswitch file (0408:f000) content.