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.
Info |
---|
classToJSON() does not support cyclic structures. When a cyclic structure is detected during serializing the given object, an exception will be thrown.
Runtimes before 2023.1 Trying to serialize a cyclic structure leads to a service crash. |
Builder 7.5.0 You can hide attributes from being serialized by applying stereotype <<E2EPrivate>>. Refer to Hiding Attributes From Interfaces for more information.