Closed Rinzwind closed 4 months ago
Interesting. Does GT also define #jsonOn:
?
There are no implementors of #jsonOn:
in Glamorous Toolkit v1.0.975.
To get a String with JSON from a GtJson, it can be sent #asJsonString
. The classes implementing #asJsonString
are GtJsonBasic, GtJsonModel and YAMLParseNode, so sending the message to an Array causes a MessageNotUnderstood to be signaled, leaving a rename of Seaside’s #asJson
to #asJsonString
as one option to avoid the conflict.
GToolkit’s #asJson
has been deprecated in GToolkit issue #3895.
I’ll close this. As noted in GToolkit issue #3895, the conflict remains as long as the deprecated methods remain in GToolkit. The workaround is to just remove them, see commit c0e63ad95c84ae45.
There are conflicting implementations of
#asJson
in Seaside and Glamorous Toolkit. Using Glamorous Toolkit v1.0.975, the test in the following fails:This is because
#asJson
doesn’t answer a String but a GtJson: