Workaround for json.loads