I've already testet your fix with my code.
It works just fine in Caché, even without the customized datatype classes - thanks!
Seems like the JSONTYPE as Property-Parameter is only available in IRIS.
Therefore I've now implemented the solution suggested by @Timothy Leavitt with own datatype-classes using the JSONTYPE class-paramter. So far it seems to work.
Hope we could upgrade to IRIS anytime soon. But unfortunately we are not quite there yet.
I've adapted your simple example:
Class test.TestJSONExport Extends (%RegisteredObject, %ZJSON.Adaptor)
Property int As %Integer;
Property bool As %Boolean;
Property str As %String(MAXLEN = "");
set obj = ..%New()
set sc = obj.%JSONExport()
With this I get the following terminal-output:
Is it because I'm using the backported %ZJSON from Robert in Caché?
Log in or create a new account to continue