import glob
import json


def load_recipes(path):
    """Load recipes from json files
    
    Parameters
    ----------
    path : str
        Path to json files
        e.g. ./json/*.json
    
    Returns
    -------
    list
        List of dicts
    """
    jsonfiles = glob.glob(f'{path}/*.json')

    recipes = []
    for file in jsonfiles:
        with open(file, 'r') as f:
            recipes.append(json.load(f))                   
    return recipes