如何使用Python打印子JSON值

如何使用Python打印子JSON值,python,json,Python,Json,我有一个JSON文件,其结构如下: { "USD" : {"15m" : 6650.3, "last" : 6650.3, "buy" : 6650.3, "sell" : 6650.3, "symbol" : "$"}, "AUD" : {"15m" : 10857.19, "last"

我有一个JSON文件,其结构如下:

{
  "USD" : {"15m" : 6650.3, "last" : 6650.3, "buy" : 6650.3, "sell" : 6650.3, "symbol" : "$"},
  "AUD" : {"15m" : 10857.19, "last" : 10857.19, "buy" : 10857.19, "sell" : 10857.19, "symbol" : "$"},
  "BRL" : {"15m" : 33997.0, "last" : 33997.0, "buy" : 33997.0, "sell" : 33997.0, "symbol" : "R$"},
}
目前,我的Python代码打印出所有AUD部分。但是,我只想打印出15m的值

我的代码如下(bitcoin_api_url变量中的链接包含JSON文件请求):


我将非常感谢您的帮助,或指出正确的方向(即文档)

print(response_json[“AUD”][“15m”])
非常感谢。我试着这样做是出于某种原因:打印(response_json[“AUD”[“15m”])
import requests

bitcoin_api_url = 'https://blockchain.info/ticker'

response = requests.get(bitcoin_api_url)
response_json = response.json()

print(response_json["AUD"])
import requests

bitcoin_api_url = 'https://blockchain.info/ticker'

response = requests.get(bitcoin_api_url)
response_json = response.json()

print(response_json["AUD"]["15m"])