【发布时间】:2017-06-22 09:28:34
【问题描述】:
我有一个文件,json 文件,我想访问其中的所有元素。我该怎么做。 文件结构是这样的
{
"Sessions": [
{
"AppVersion": "2.4.0",
"Connectivity": "Cellular",
"Device": "iPhone 6 Plus",
"DeviceType": "Phone",
"Duration": 958616,
"Id": "591e3580e3f5fb2ade29f4d8",
"Location": {
"Country": "US",
"Description": "Cleveland Texas"
},
"OSVersion": "10.3.1",
"Platform": "iOS",
"Screens": [
{
"Actions": [],
"Gestures": [],
"Name": "LoginPage",
"StartTime": 0
},
{
"Actions": [
{
"Description": "Image",
"Index": "2.23",
"Time": 46179,
"Type": "ButtonTap"
},
{
"Description": "Image",
"Index": "2.23",
"Time": 46735,
"Type": "ButtonTap"
}, ]}
......100 个元素
我只能访问Sessions,不能访问里面,比如我想访问“Time”,怎么做?
【问题讨论】:
标签: json r data-analysis data-science