Interface.to_jsonstring

Interface.to_jsonstring(pretty=False)

Convert an object to its native data representation and save it to a JSON string.

Parameters:
prettybool, optional

If True, the JSON string will be pretty printed. Defaults to False.

Returns:
str

The JSON string.