import json


def get_manifest_file_json(source):
    """Return the manifest JSON file of the provided source file"""
    if source is not None:
        manifest_file = source.read("manifest")
        return json.loads(manifest_file.decode('utf-8'))
    else:
        raise Exception()