ansys.scade.apitools.prop.pragma.get_pragma_json#
- ansys.scade.apitools.prop.pragma.get_pragma_json(object_: scade.model.suite.Object, id: str) object #
Deserialize a text pragma containing a JSON document to a Python object.
See the pragma_json example.
Parameters#
- object_suite.Object
Element to get the pragma from.
- idstr
ID of the pragma.
Returns#
- object
Python object corresponding to the JSON document stored in the pragma. Returns
{}
if there is no pragma orNone
if the pragma does not contain a valid JSON document.