Exporting

Pretty Printing SysML and KerML

JSON Serialization

SerializationError

Error serializing element to SysML v2 JSON.

DeserializationError

Error serializing element to SysML v2 JSON.

SerdeWarning

Class for warnings from serialization and deserialization

dumps

Serialize element to a SysML v2 JSON str.

loads

loads implementation

(Advanced) Formatting

(Advanced) Serialization Low Level

serialize

Convenience function for serialization. Prefer using Serializer to avoid allocations when doing repeated serializations.

deserialize

Convenience function for deserialization. Prefer using Deserializer to avoid allocations when doing repeated deserializations.

Writer

Abstract base class for serialization writer implementations.

Serializer

Serializer for SysML models. The actual serialization output depends on used Writer.

Reader

Abstract base class for all deserialization readers.

Deserializer

Deserializer for SysML models. The actual deserialization input depends on used Reader.

FailAction

Action taken when a serialization error is encountered.

SerdeMessage

Message emitted during (de)serialization

SerializationOptions

Options for SysML model serialization. Attribute options are ordered in descending precedence.

SerdeReport

(De)Serialization report containing emitted messages.

DeserializedModel

The model as it was deserialized, with references potentially unresolved.

PendingReference

Reference that has yet to be linked.

IdMap

DeserializedModel compatible mapping for elements. This will typically be used for linking pending references:

(Advanced) JSON Low Level

JsonStringWriter

Serialization writer that outputs JSON string

JsonReader

Unbound reader for JSON deserialization

JsonStringOptions

Options for serialization writer to JSON strings

AttributeMap

Internal opaque type for deserialization attribute mapping

DESERIALIZE_INTERNAL

DESERIALIZE_STANDARD