import json


def PrettyPrintJSON(dict_object, sort_keys=True):
  """Generates a easy to read representation of a dict object.

  Args:
    dict_object (dict): dict to convert to string
    sort_keys (bool): bool to enable key sorting

  Returns:
    str: pretty printed JSON string.
  """
  pretty_json = json.dumps(
      dict_object, sort_keys=sort_keys, indent=4, separators=(', ', ': '))
  return pretty_json + '\n'