I have a JSON file which I have converted into a dictionary using the code below:
Newdict=r.json()
r
has the same data which newdict
has.
Newdict= {'name':'jas','surname':'kumar','age':19,'country':'IN'}
{'name':'arch','surname':'sahu','age':29,'country':'Sl'}
{'name':'salman','surname':'khan','age':20,'country':'pk'}
{'name':'raju','surname':'reddy','age':32,'country':'usa'}
I want search for something like age = 20
then print salman
.