get_pragma_json(object_, id)#

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 or None if the pragma does not contain a valid JSON document.