Access JSON to DICT in Python -


i have next json in js

var intervalos= {           "operandos":[{              "extremoinferior":$(edit_numvar).context.value,              "extremosuperior":$(edit_numvar2).context.value           },           {              "extremoinferior":$(edit_numvar3).context.value,              "extremosuperior":$(edit_numvar4).context.value           }] }; 

and did parsed_input = json.loads(self.intervalos)

but don't know how access dict. tried

intervalos[operandos][extremoinferior])      

but returns error.

could me accessing element of dict?

after deserializing json python object access elements. example:

parsed_input = json.loads(self.intervalos) extremo_inferior_0 = parsed_input['operandos'][0]['extremoinferior'] 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -