Как мне разобрать запрос JSON что-то подобное?
{
"location_with_names": [
{
"location_id": 101,
"names": [
"a",
"b",
"c"
]
},
{
"location_id": 102,
"names": [
"a",
"e"
]
},
{
"location_id": 103,
"names": [
"f",
"c"
]
}
]
}
пример кода:
def on_post(self, req, resp):
location_with_names = req.get_param_as_list('location_with_names')
print(location_with_names)
location_with_names
Нет