I wish to query json result data to be used in Razor view and would like to know how to search by a specific id and capture data for a specific node:
Here is an example(just a part) of my json:
{
"maxPages":1,
"data":[
{
"id":"123",
"perfomanceData":[
{
"platform":{
"name":"Test0",
"id":0
},
],
{
"id":"124",
"perfomanceData":[
{
"platform":{
"name":"Test1",
"id":0
},
],
{
"id":"125",
"perfomanceData":[
{
"platform":{
"name":"Test2",
"id":0
},
],
I wish to search by an ID example 125 and retrieve just this section
perfomanceData":[
{
"platform":{
"name":"Test2",
"id":0
},
]
How can I use JavaScript to do the above?