I have payload as below and I need the StartTime and EndTime values where the payload has the first IsAvailable is equal to true
"StatusList": [
{
"date": "2020-03-13T00:00:00Z",
...
See more...
I have payload as below and I need the StartTime and EndTime values where the payload has the first IsAvailable is equal to true
"StatusList": [
{
"date": "2020-03-13T00:00:00Z",
"status": [
{
"StartTime": "2020-03-13T06:30:00Z",
"EndTime": "2020-03-13T08:30:00Z",
"IsAvailable": false,
"score": 91.05
},
{
"StartTime": "2020-03-13T08:30:00Z",
"EndTime": "2020-03-13T10:30:00Z",
"IsAvailable": false,
"score": 94.29
},
{
"StartTime": "2020-03-13T10:30:00Z",
"EndTime": "2020-03-13T12:30:00Z",
"IsAvailable": **true**,
"score": 100
},
{
"StartTime": "2020-03-13T12:30:00Z",
"EndTime": "2020-03-13T14:30:00Z",
"IsAvailable": true,
"score": 96.1
},
{
"StartTime": "2020-03-13T14:30:00Z",
"EndTime": "2020-03-13T16:30:00Z",
"IsAvailable": true,
"score": 90.39
},
{
"StartTime": "2020-03-13T16:30:00Z",
"EndTime": "2020-03-13T18:30:00Z",
"IsAvailable": false,
"score": 0
}
],
How can I achieve this?