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