import json


def pprint_json(jsdoc):
    """
    Pretty-print a json document

    Parameters
    ----------
    jsdoc : dict
        The json document to be pretty printed

    Returns
    -------
    pprint_str : str
        The json document 'pretty printed' as single string
        with '\\n'

    """
    return json.dumps(jsdoc, sort_keys=True, indent=4,
               separators=(',', ': '))