luci-base: do not coerce objects to strings
authorPaul Donald <newtwen+github@gmail.com>
Sat, 31 Jan 2026 22:49:13 +0000 (23:49 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Sat, 31 Jan 2026 22:49:13 +0000 (23:49 +0100)
commit2682aecc7fcf56a09b0489cfa84136286142b8de
tree89440593f55bca39255a74924430ebc7e3726340
parent80f9b0d012fc1315bc4aa684a689752b941bad0f
luci-base: do not coerce objects to strings

When getting values from the form, especially in a JSONMap,
some objects may be nested, and as such, it's not much use
to return '[object Object]'. Return the object instead, so
the caller can do something useful with it. This makes
multidimensional maps much easier to use.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-base/htdocs/luci-static/resources/form.js