comparison mod_rest/jsonmap.lib.lua @ 3906:dbebc9226597

mod_rest: Fix traceback in mapping of adhoc with forms Missed this in 987b203bb091
author Kim Alvefur <zash@zash.se>
date Tue, 25 Feb 2020 23:30:07 +0100
parents 987b203bb091
children d5ecb9b9cb3b
comparison
equal deleted inserted replaced
3905:5ae2e865eea0 3906:dbebc9226597
259 type = note.attr.type; 259 type = note.attr.type;
260 text = note:get_text(); 260 text = note:get_text();
261 }; 261 };
262 end 262 end
263 if form then 263 if form then
264 cmd.form = dataform[4] (form); 264 cmd.form = dataform.st2json(form);
265 end 265 end
266 return cmd; 266 return cmd;
267 end; 267 end;
268 json2st = function (s) 268 json2st = function (s)
269 if type(s) == "table" and s ~= json.null then 269 if type(s) == "table" and s ~= json.null then