import json
data = json.loads('{"ids":{"id":"5"}}')
id = data['ids']['id']
import json
- library to operate with jsonjson.loads
- parse json string into objectdata['ids']['id']
- query value of the nested element the same was as we query dictionary
group: json
import json
data = json.loads('{"ids":{"id":"5"}}')
id = data['ids']['id']
print(id)
5