Getting started
API Reference
Examples
Convert a (possibly) nested dict into a str of json-like formatted form.
This nested dict might also contain lists or tuples of dict (and of str, int, etc.)
d (dict or list or tuple) – A (possibly) nested dict, or a list of dict.
dict
current_depth (int, default 1) – Depth of d in the (possible) parent dict or list.
list
indent_spaces (int, default 4) – The indent spaces of each depth.
The formatted string.
str