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
Post a Comment