Try this:
volumes = ["Volume:vol-XXXXXXXX", "Volume:vol-YYYYYYYY"]
json.dumps({
"volumes": volumes
})
solved Convert Python List to JSON Separate Objects [closed]
Try this:
volumes = ["Volume:vol-XXXXXXXX", "Volume:vol-YYYYYYYY"]
json.dumps({
"volumes": volumes
})
solved Convert Python List to JSON Separate Objects [closed]