The operation classToJSON()
takes any object (anObject
) and tries to map it to a JSON string aString
. If this is not possible, an error is raised.
JSON types and xUML types are mapped as listed in chapter jsonToClass() Operation.
Builder 7.5.0 You can hide attributes from being serialized by applying stereotype <<E2EPrivate>>. Refer to Hiding Attributes From Interfaces for more information.