Exemple #1
0
def expand_json(data):
    """Make complex objects (w/ dates, to_dict) into JSON."""
    data = JSONEncoder().encode(data)
    return json.loads(data)
Exemple #2
0
def expand_json(data):
    data = JSONEncoder().encode(data)
    return json.loads(data)