9951 explained code solutions for 126 technologies


pythonHow to query json


import json
data = json.loads('{"ids":{"id":"5"}}')
id = data['ids']['id']ctrl + c
import json

library to operate with json

json.loads

parse json string into object

data['ids']['id']

query value of the nested element the same was as we query dictionary