using `ImportJSON` only return content of nested array
jerrytohvan opened this issue · comments
Jerry Tohvan commented
Hello team,
I was wondering if there are any configurations or way that allow me to include values of events.markets.outcomes
.
Currently, running =IMPORTJSON("https://smartlyio-travel.herokuapp.com/more_games.json", "/events/markets/outcomes","noInherit,noTruncate")
is returning first appearing outcome object.
{
"key":"rules",
"name":"Rules",
"events":[
{
"key":"971329",
"name":"Team A v Team B",
"markets":[
{
"key":"16255688",
"name":"Match Results (Team A v Team B)",
"category":"Match Result",
"outcomes":[
{
"key":"1",
"name":"Team A",
"price":1.7
},
{
"key":"2",
"name":"Team B",
"price":2.5
}
]
}
],
"specialFixedOddsMarkets":[
],
"competitionMetaData":{
"featuredName":"AFL",
"featuredSortOrder":1
}
},
{
"key":"971329",
"name":"Team C v Team B",
"markets":[
{
"key":"16255688",
"name":"Match Results (Team C v Team B)",
"category":"Match Result",
"outcomes":[
{
"key":"2",
"name":"Team C",
"price":1.2
},
{
"key":"3",
"name":"Team B",
"price":3.2
}
]
}
],
"specialFixedOddsMarkets":[
],
"competitionMetaData":{
"featuredName":"AFL",
"featuredSortOrder":1
}
}
]
}