aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/json.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/json.lua b/util/json.lua
index efc602f0..abb87eab 100644
--- a/util/json.lua
+++ b/util/json.lua
@@ -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
-----------------------------------