Function to return pretty formatted JSON strings for easily readable output from objects.
data (object) – Data object to be printed as an easily readable JSON string.
JSON string that has been formatted with indents (two spaces).
str