{
“reports”: [
{
“columnHeader”: {
“dimensions”: [
“ga:dateHour”,
“ga:browser”,
“ga:browserVersion”,
“ga:operatingSystem”,
“ga:mobileDeviceInfo”,
“ga:deviceCategory”,
“ga:browserSize”
],
“metricHeader”: {
“metricHeaderEntries”: [
{
“name”: “ga:users”,
“type”: “INTEGER”
},
{
“name”: “ga:sessions”,
“type”: “INTEGER”
},
{
“name”: “ga:bounces”,
“type”: “INTEGER”
},
{
“name”: “ga:pageviews”,
“type”: “INTEGER”
},
{
“name”: “ga:transactions”,
“type”: “INTEGER”
},
{
“name”: “ga:transactionRevenue”,
“type”: “CURRENCY”
},
{
“name”: “ga:pageLoadTime”,
“type”: “INTEGER”
},
{
“name”: “ga:domInteractiveTime”,
“type”: “INTEGER”
},
{
“name”: “ga:domContentLoadedTime”,
“type”: “INTEGER”
},
{
“name”: “ga:sessionDuration”,
“type”: “TIME”
}
]
}
},
“data”: {
“rows”: [
{
“dimensions”: [
“2020011908”,
“Safari (in-app)”,
“(not set)”,
“iOS”,
“Apple iPhone 8 Plus”,
“mobile”,
“410x630”
],
“metrics”: [
{
“values”: [
“2”,
“2”,
“1”,
“4”,
“0”,
“0.0”,
“0”,
“0”,
“0”,
“55.0”
]
}
]
}
],
“totals”: [
{
“values”: [
“917”,
“903”,
“430”,
“1924”,
“30”,
“1948.21”,
“44279”,
“24547”,
“24549”,
“73585.0”
]
}
],
“rowCount”: 788,
“minimums”: [
{
“values”: [
“1”,
“0”,
“0”,
“1”,
“0”,
“0.0”,
“0”,
“0”,
“0”,
“0.0”
]
}
],
“maximums”: [
{
“values”: [
“4”,
“4”,
“3”,
“17”,
“1”,
“209.84”,
“9708”,
“5697”,
“5698”,
“2527.0”
]
}
]
},
“nextPageToken”: “206”
}
]
}
json_from_file = File.read(“test.json”)
hash = JSON.parse(json_from_file)
here i want to list all the keys from hash