Manipulating Json Files Python
I'm receiving a JSON file with a lot of information, and I'm trying to get some properties of this JSON file, I research at Python API and I couldn't find any information about som
Solution 1:
Your data doesn't seem to be properly formatted, in particular I don't see where's the closing square bracket for the one opening just after "servers":
, but I'd say that what you're looking for is:
data['servers'][0]['status']
where data
is the variable that points to the result of json.loads
.
Post a Comment for "Manipulating Json Files Python"