I am new to python and trying to parse the json file and fetch the required field based on condition.
eg., if status = true, then print name
Json file:
[
{
"id": "12345",
"name": "London",
"active": true,
"status": "true",
"version": "1.0",
"tags": [
]
},
{
"id": "12457",
"name": "Newyork",
"active": true,
"status": "false",
"version": "1.1",
"tags": [
]
},
]
expected output:
name : London
Please help me on this. Thank you in advance.