# HG changeset patch # User Matthew Wild # Date 1364477489 14400 # Node ID 9adde79c52b9d374700689e73ccf678090606ecc # Parent 3d1de30fefec000d92bea4af5d75aec4792ee283# Parent ec33d72a08b6e88b683525f22efba7b400de765b Merge 0.9->trunk diff -r 3d1de30fefec -r 9adde79c52b9 util/json.lua --- a/util/json.lua Thu Mar 28 12:17:15 2013 +0000 +++ b/util/json.lua Thu Mar 28 09:31:29 2013 -0400 @@ -148,6 +148,11 @@ simplesave(obj, t); return t_concat(t); end +function json.encode_array(obj) + local t = {}; + arraysave(obj, t); + return t_concat(t); +end -----------------------------------