diff --git a/package/gluon-web/luasrc/usr/lib/lua/gluon/web/dispatcher.lua b/package/gluon-web/luasrc/usr/lib/lua/gluon/web/dispatcher.lua index b003a086..7f5b4c8b 100644 --- a/package/gluon-web/luasrc/usr/lib/lua/gluon/web/dispatcher.lua +++ b/package/gluon-web/luasrc/usr/lib/lua/gluon/web/dispatcher.lua @@ -87,6 +87,7 @@ local function dispatch(config, http, request) pcdata = util.pcdata, urlencode = proto.urlencode, attr = attr, + json = json.stringify, url = function(path) return build_url(http, path) end, }, { __index = _G }))