util.json: Add json.encode_array() (thanks B)

This commit is contained in:
Matthew Wild 2013-03-28 09:31:07 -04:00
parent afbece2a94
commit 533a5899e3

View file

@ -148,6 +148,11 @@ function json.encode_ordered(obj)
simplesave(obj, t);
return t_concat(t);
end
function json.encode_array(obj)
local t = {};
arraysave(obj, t);
return t_concat(t);
end
-----------------------------------