This is what OS Support had to say
=======================================
The type mappings for REST API outputs are done like you mention by design.
This allows for greater flexibility when defining our customer's REST APIs. If the customer wants a custom format they can simply add a text output and built it themselves, for example. Some APIs are also simpler if you just return the number or boolean instead of forcing the consumers to parse a JSON object to obtain a single value.
It's currently not possible to change the way this works.
Please let us know if you have further questions regarding this matter.
Best regards,
Ricardo Silva
============================================================
=======================================
The type mappings for REST API outputs are done like you mention by design.
This allows for greater flexibility when defining our customer's REST APIs. If the customer wants a custom format they can simply add a text output and built it themselves, for example. Some APIs are also simpler if you just return the number or boolean instead of forcing the consumers to parse a JSON object to obtain a single value.
It's currently not possible to change the way this works.
Please let us know if you have further questions regarding this matter.
Best regards,
Ricardo Silva
============================================================