[Solved] Extract and Display a Value from a JSON Array
Assuming the json data is stored in json_text in python, you can do import json json.loads(json_text).get(‘bpi’).get(‘USD’).get(‘rate’) If the data is critical for you, you should check for errors. Also, making the currency configurable might be a good idea. solved Extract and Display a Value from a JSON Array