import json


def load_data(filename):
    """Load Atom Snippets data from json
    :filename: Atom Snippets json file
    :returns: json atom data
    """
    snippets_file = open(filename)
    # data = snippets_file.read().decode('utf-8')
    atom_snippets_fixture = json.load(snippets_file)
    return atom_snippets_fixture