我正在尝试加载JSON文件,并希望从该文件中提取一个称为帧时间的字段(仅希望帧时间少于4秒),并希望将其打印到python中的其他文件中,我该怎么做? >
一段json文件
[ { “ _index”:“ packets-2019-03-14”, “ _type”:“ pcap_file”, “ _score”:null, “_资源”: { “图层”:{ “框架”:{ “ frame.encap_type”:“ 1”, “ frame.time”:“ 2019年3月5日17:51:00.270140000印度标准时间”, “ frame.offset_shift”:“ 0.000000000”, “ frame.time_epoch”:“ 1551788460.270140000”, “ frame.time_delta”:“ 0.000000000”, “ frame.time_delta_displayed”:“ 0.000000000”, “ frame.time_relative”:“ 0.000000000”, “ frame.number”:“ 1”, “ frame.len”:“ 99”, “ frame.cap_len”:“ 99”, “ frame.marked”:“ 0”, “ frame.ignored”:“ 0”, “ frame.protocols”:“ eth:ethertype:ip:tcp”, “ frame.coloring_rule.name”:“ TCP”, “ frame.coloring_rule.string”:“ tcp” }, “ eth”:{ “ eth.dst”:“ 00:1a:11:00:00:02”, “ eth.dst_tree”:{ “ eth.dst_resolved”:“ Google_00:00:02”, “ eth.addr”:“ 00:1a:11:00:00:02”, “ eth.addr_resolved”:“ Google_00:00:02”, “ eth.lg”:“ 0”, “ eth.ig”:“ 0” }, “ eth.src”:“ 00:1a:11:00:00:01”, “ eth.src_tree”:{ “ eth.src_resolved”:“ Google_00:00:01”, “ eth.addr”:“ 00:1a:11:00:00:01”, “ eth.addr_resolved”:“ Google_00:00:01”, “ eth.lg”:“ 0”, “ eth.ig”:“ 0” }, “ eth.type”:“ 0x00000800”