Skip to content

Commit 7d842fa

Browse files
iroquetaBeta Bot
authored andcommitted
Cherry pick branch 'genexuslabs:FixFromJsonPerformance' into beta
1 parent f6a55d1 commit 7d842fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

common/src/main/java/com/genexus/GXBaseCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public void FromJSONObject(Object obj)
233233
try
234234
{
235235
Object jsonObj = jsonArr.get(i);
236-
if (jsonObj instanceof JSONObject)
236+
if ((jsonObj instanceof JSONObject) && !(jsonObj instanceof JSONObjectWrapper))
237237
jsonObj = new JSONObjectWrapper((JSONObject)jsonObj);
238238
Class[] parTypes = new Class[] {};
239239
Object[] arglist = new Object[] {};

common/src/main/java/com/genexus/json/JSONObjectWrapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public JSONObjectWrapper(Map<?,?> m) {
4444
}
4545

4646
public JSONObjectWrapper(JSONObject jsonObject) {
47-
this(jsonObject.toMap());
47+
super(jsonObject.toString());
48+
initMap();
4849
}
4950

5051
private void initMap() {

0 commit comments

Comments
 (0)