The operation classToExtendedJson()
takes any object (anObject
) and tries to map it to an Extended JSON string aString
.
Info |
---|
In opposition to classToJSON, classToExtendedJson() preserves the order of attributes of the converted class. JSON types and xUML types are mapped as listed in chapter jsonToClass. These details also refer to Extended JSON. |
If the conversion is not possible, an error is raised.
Info |
---|
classToExtendedJSON() 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. |
You can hide attributes from being serialized by applying stereotype <<E2EPrivate>>. Refer to Hiding Attributes From Interfaces for more information.