luci-base: dispatcher.lua: introduce dispatch tree JSON conversion
authorJo-Philipp Wich <jo@mein.io>
Sun, 1 Dec 2019 19:06:43 +0000 (20:06 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 16 Dec 2019 17:07:17 +0000 (18:07 +0100)
commit852d24061d236048a8c2c886787eede2586b10b4
tree441c7028c42c3b02f267b103b091b356eb56e6ca
parentffe81aead3f806f28220034cb6276d89774fa47b
luci-base: dispatcher.lua: introduce dispatch tree JSON conversion

Introduce a new method menu_json() which converts the current dispatch
tree into JSON structure.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/dispatcher.lua