Skip to content

Commit a96fd69

Browse files
committed
Call toJSonString with no state for BC (#164)
* Call toJSonString with no state for BC State for BC is not relevant for VRO parameters integrity * Keep IGxJSONSerializable case (cherry picked from commit ca49221)
1 parent c34310e commit a96fd69

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

java/src/main/java/com/genexus/webpanels/GXWebObjectBase.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,15 @@ private String serialize(Object Value) {
562562
}
563563
}
564564
else{
565-
strValue = (Value instanceof IGxJSONSerializable) ? ((IGxJSONSerializable)Value).toJSonString() : Value.toString();
565+
if (Value instanceof com.genexus.xml.GXXMLSerializable) {
566+
strValue = ((com.genexus.xml.GXXMLSerializable) Value).toJSonString(false);
567+
}
568+
else if (Value instanceof IGxJSONSerializable) {
569+
strValue = ((IGxJSONSerializable) Value).toJSonString();
570+
}
571+
else {
572+
strValue = Value.toString();
573+
}
566574
}
567575
}
568576
return strValue;

0 commit comments

Comments
 (0)