yfpy.utils.prettify_data

prettify_data(data)[source]

Function to return pretty formatted JSON strings for easily readable output from objects.

Parameters:

data (object) – Data object to be printed as an easily readable JSON string.

Returns:

JSON string that has been formatted with indents (two spaces).

Return type:

str