mod_rest/jsonmap.lib.lua
changeset 4376 78de3c7acf58
parent 4313 e8b9228b5265
child 4477 3b50a9a75fb6
--- a/mod_rest/jsonmap.lib.lua	Thu Jan 21 18:54:42 2021 +0000
+++ b/mod_rest/jsonmap.lib.lua	Fri Jan 22 15:19:53 2021 +0100
@@ -486,7 +486,7 @@
 		return t;
 	end
 
-	for tag in s:children() do
+	for _, tag in ipairs(s.tags) do
 		local prefix = "{" .. (tag.attr.xmlns or "jabber:client") .. "}";
 		local mapping = byxmlname[prefix .. tag.name];
 		if not mapping then