From 2e2504bf20bd97bc9ce9f729330bc46b618c2bf6 Mon Sep 17 00:00:00 2001 From: iroqueta Date: Thu, 26 Nov 2020 16:13:13 -0300 Subject: [PATCH] ToJson of a CollectionSDT was not working well y clone was used in the collection items Issue: 38475 --- common/src/main/java/com/genexus/xml/GXXMLSerializable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/genexus/xml/GXXMLSerializable.java b/common/src/main/java/com/genexus/xml/GXXMLSerializable.java index 76c04a909..8621e11ae 100644 --- a/common/src/main/java/com/genexus/xml/GXXMLSerializable.java +++ b/common/src/main/java/com/genexus/xml/GXXMLSerializable.java @@ -297,7 +297,7 @@ public Object GetJSONObject(boolean includeState) } public Object GetJSONObject(boolean includeState, boolean includeNoInitialized) { - jsonObj.clear(); + jsonObj = new JSONObject(); tojson(includeState, includeNoInitialized); if (isArrayObject) {