FIXED !
I have implemented an extension to %ZJSON.Generator to fix missing JSONTYPE
Standard Caché data types don't have a parameter JSONTYPE (!!) so everthing is set to (quoted) "string".
Especially numbers and boolean data must not be in quotes.
e.g ....."NUMfield":124, "TrueFalse":true, ....
instead of ....."NUMfield":"124", "TrueFalse":"true", ....
this extension bypasses the missing parameter for these standard data types as indicated in %ZJSON.Adaptor
/// number = %BigInt, %Currency, %Decimal, %Double, %Float, %Integer, %Numeric, %SmallInt, %TinyInt
/// boolean = %Boolean
For customized data classes it is easy to add Parameter JSONTYPE=". . . ."
But changing sometihng in SYSLIB is a clear NO-NO to me. ( though it might have been easier)
The extended version of %ZJSON.Generator is here:
https://github.com/rcemper/Backport-JSON.-to-Cach-/blob/master/MissingJSONTYPE.xml
- Log in to post comments
.png)
.png)