I have JSON and can get value using
print(step_id['Steps'][0]['Id'])
But the position of Id
key might be changed. However, its name 'Id'
won't change.
How to get value by using a key name? Prompt me, please.
Example of JSON file
{
"Steps": [
{
"Id": "UPSKGVQL6Y",
"Config": {
"Properties": {},
"Args": []
},
"Status": {}
}
],
"ResponseMetadata": {}
}