Some more findings what happens:
The output methods are code generated. And the generator just uses JSONTYPE from the data type class.
That means that even as the property parameter is available in Studio, ... you can't change it.
example: Property bool as %Boolean (JSONTYPE="string") is just ignored and you see ,"bool":false
This means: JSONTYPE is frozen in the data type class
Bringing Parameter JSONTYPE into the class (e.g, by %ZJSON.Adaptor) has no influence to the Generator
To achieve the expected result you require a customized data class as suggested by @Timothy Leavitt
Out of 25 only these 7 6 classes are affected the rest is string which is default anyhow.
boolean %Library.Boolean.cls(JSONTYPE): Parameter JSONTYPE
number %Library.Currency.cls(JSONTYPE): Parameter JSONTYPE
number %Library.Decimal.cls(JSONTYPE): Parameter JSONTYPE
number %Library.Float.cls(JSONTYPE): Parameter JSONTYPE
number %Library.Integer.cls(JSONTYPE): Parameter JSONTYPE
number %Library.Numeric.cls(JSONTYPE): Parameter JSONTYPE number %Library.PosixTime.cls(JSONTYPE): Parameter JSONTYPE not in Caché
- Log in to post comments
.png)
.png)