Ask a question to get started
Enter to send•Shift+Enter new line
Return a JSON string representation of an object.
dumps( obj: Any, *, pretty: bool = False, **kwargs: Any = {} ) -> str
Note:
Plain dicts containing an 'lc' key are automatically escaped to prevent confusion with LC serialization format. The escape marker is removed during deserialization.
'lc'
obj
Any
The object to dump.
pretty
bool
False
Whether to pretty print the json.
If True, the json will be indented by either 2 spaces or the amount provided in the indent kwarg.
True
indent
**kwargs
{}
Additional arguments to pass to json.dumps
json.dumps