Changeset

5396:9adde79c52b9

Merge 0.9->trunk
author Matthew Wild <mwild1@gmail.com>
date Thu, 28 Mar 2013 09:31:29 -0400
parents 5394:3d1de30fefec (current diff) 5395:ec33d72a08b6 (diff)
children 5398:4a3737f0ce9a
files
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 
 -----------------------------------