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>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
commit0f6af6e00da8c5edee69333bb83db6c711183a80
treead4f5ead338142e10dd29ab05584792fca235f3d
parentcecc13b9d4344cd6a69faa1d77c5edcf23fb0ea1
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>
(cherry picked from commit 852d24061d236048a8c2c886787eede2586b10b4)
modules/luci-base/luasrc/dispatcher.lua