Writes json files

    :param filename:
        The full path to the json file
    :param content:
        The content to dump
    :returns:
        The size written

def write_json(filename, content):
    '''
    Writes json files

    :param filename:
        The full path to the json file
    :param content:
        The content to dump
    :returns:
        The size written
    '''

    j = _dumps(content, indent=4, sort_keys=True)
    if j:
        return write_file(filename, j)