# \[SOLVED\] Parsing challange API response

**URL:** https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275
**Category:** Issues / Bugs
**Created:** [May 21, 2024, 4:34pm UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275 "2024-05-21T16:34:05Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)
#### Post date: [May 21, 2024, 4:34pm UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/1 "2024-05-21T16:34:06Z")

</div>

Hello - Below you can see the response i try to part´se but i got blind so i cant see what i do wrong. Tried to get help by ChatGpt as well and it looks allright but i cant get it right

This works fine:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/8/1828f1460cd1d1dcecd31401c956222cc6ec1c74.png)

But this does not:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/5/a551a08c0fdcd301d30ba6a2debebfc00a2f27c3.png)

Any ideas?  
Regards  
Stefan

```auto

{
  "departures": [
    {
      "direction": "string",
      "direction_code": 2,
      "via": "string",
      "destination": "string",
      "state": "NOTEXPECTED",
      "scheduled": "2024-01-01T01:00:00",
      "expected": "2024-01-01T01:00:00",
      "display": "string",
      "journey": {
        "id": 2020062310015,
        "state": "NOTEXPECTED",
        "prediction_state": "NORMAL",
        "passenger_level": "EMPTY"
      },
      "stop_area": {
        "id": 41483,
        "name": "Abborrkroksvägen",
        "sname": "string",
        "type": "BUSTERM"
      },
      "stop_point": {
        "id": 41483,
        "name": "Universitetet",
        "designation": "D"
      },
      "line": {
        "id": 13,
        "designation": "13X",
        "transport_mode": "BUS",
        "group_of_lines": "tunnelbanans gröna linje"
      },
      "deviations": [
        {
          "importance": 5,
          "consequence": "INFORMATION",
          "message": "Resa förbi Arlanda C kräver både UL- och SL- biljett."
        }
      ]
    }
  ],
  "stop_deviations": [
    {
      "id": 26170662,
      "level": 5,
      "message": "Tack för att du följer Folkhälsomyndighetens rekommendationer och visar hänsyn när du reser!",
      "scope": {
        "description": "string",
        "lines": "string",
        "stop_areas": "string",
        "stop_points": "string"
      }
    }
  ]
}

```

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [May 21, 2024, 7:22pm UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/2 "2024-05-21T19:22:26Z")

</div>

JSON arrays can have an index of 0 but Thunkable lists and properties start at 1. So you’ll need to fix the index values you’re using.

---

<div class="post-metadata">

### Author: ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)
#### Post date: [May 21, 2024, 8:50pm UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/3 "2024-05-21T20:50:45Z")

</div>

So this should do the thing… but nothing comes out of it…  
Sooner or later i will get the hang out of it…  
But for now… Can u guide a bit more thanks!! 🙏 🙃

And PS - Is it really an Array??

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/1/918c0e82787d6f71e96c4fe6373c6c6a51aa9e73.png)

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [May 21, 2024, 10:11pm UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/4 "2024-05-21T22:11:52Z")

</div>

These blocks are significantly different from the ones above, at least as far as I assumed. I didn’t realize you were using a loop. Or two loops. That complicates things.

But yes, when you see a bracket [ in JSON, it indicates an array.

I don’t think you can loop through the items in an object. It’s not a list but you’re attempting to treat it as one. What data are you trying to get that would require looping through the JSON? Do you have an example of JSON text that includes an array/list with more than one item? In the JSON you posted above, “departures” and “deviations” only have one item each:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/a/ca212f2d829ccef3b9759f0bebd2ee50897fec7c.png)

---

<div class="post-metadata">

### Author: ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)
#### Post date: [May 22, 2024, 6:03am UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/5 "2024-05-22T06:03:58Z")

</div>

OK Lets try a new one.  
This one works but does give me only ONE of the “Scheduled/Expected” info

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/5/b5ad035b00ffed0976fac295d93c0fb8dca0d29e.png)

In the code below you see there are several, so i try with a list but i do not get anything at all. not even an error.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1b3d1ba60d4fce3714d89561c8b75705807539f8.png)

So i am after how to fetch the Scheduled and Expected information from all of the places in he response where it occurs.

Hope you understand me 😃

```auto
{
  "departures": [
    {
      "destination": "Hässelby strand",
      "direction_code": 1,
      "direction": "Hässelby strand",
      "state": "ATSTOP",
      "display": "Nu",
      "scheduled": "2024-05-22T07:48:00",
      "expected": "2024-05-22T07:48:00",
      "journey": {
        "id": 2024052210987,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 1011,
        "name": "Slussen",
        "designation": "1"
      },
      "line": {
        "id": 17,
        "designation": "17",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans gröna linje"
      },
      "deviations": []
    },
    {
      "destination": "Mörby centrum",
      "direction_code": 1,
      "direction": "Mörby centrum",
      "state": "EXPECTED",
      "display": "1 min",
      "scheduled": "2024-05-22T07:49:30",
      "expected": "2024-05-22T07:49:45",
      "journey": {
        "id": 2024052220085,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 2011,
        "name": "Slussen",
        "designation": "2"
      },
      "line": {
        "id": 14,
        "designation": "14",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans röda linje"
      },
      "deviations": []
    },
    {
      "destination": "Vällingby",
      "direction_code": 1,
      "direction": "Hässelby strand",
      "state": "EXPECTED",
      "display": "1 min",
      "scheduled": "2024-05-22T07:50:00",
      "expected": "2024-05-22T07:50:00",
      "journey": {
        "id": 2024052210441,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 1011,
        "name": "Slussen",
        "designation": "1"
      },
      "line": {
        "id": 19,
        "designation": "19",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans gröna linje"
      },
      "deviations": []
    },
    {
      "destination": "Alvik",
      "direction_code": 1,
      "direction": "Hässelby strand",
      "state": "EXPECTED",
      "display": "3 min",
      "scheduled": "2024-05-22T07:52:00",
      "expected": "2024-05-22T07:52:00",
      "journey": {
        "id": 2024052210226,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 1011,
        "name": "Slussen",
        "designation": "1"
      },
      "line": {
        "id": 18,
        "designation": "18",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans gröna linje"
      },
      "deviations": []
    },
    {
      "destination": "Ropsten",
      "direction_code": 1,
      "direction": "Ropsten",
      "state": "EXPECTED",
      "display": "3 min",
      "scheduled": "2024-05-22T07:52:00",
      "expected": "2024-05-22T07:52:00",
      "journey": {
        "id": 2024052220611,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 2011,
        "name": "Slussen",
        "designation": "2"
      },
      "line": {
        "id": 13,
        "designation": "13",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans röda linje"
      },
      "deviations": []
    },
    {
      "destination": "Hässelby strand",
      "direction_code": 1,
      "direction": "Hässelby strand",
      "state": "EXPECTED",
      "display": "5 min",
      "scheduled": "2024-05-22T07:54:00",
      "expected": "2024-05-22T07:54:01",
      "journey": {
        "id": 2024052210442,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 1011,
        "name": "Slussen",
        "designation": "1"
      },
      "line": {
        "id": 19,
        "designation": "19",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans gröna linje"
      },
      "deviations": []
    },
    {
      "destination": "Mörby centrum",
      "direction_code": 1,
      "direction": "Mörby centrum",
      "state": "EXPECTED",
      "display": "6 min",
      "scheduled": "2024-05-22T07:54:30",
      "expected": "2024-05-22T07:55:15",
      "journey": {
        "id": 2024052220086,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 2011,
        "name": "Slussen",
        "designation": "2"
      },
      "line": {
        "id": 14,
        "designation": "14",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans röda linje"
      },
      "deviations": []
    },
    {
      "destination": "Alvik",
      "direction_code": 1,
      "direction": "Hässelby strand",
      "state": "EXPECTED",
      "display": "7 min",
      "scheduled": "2024-05-22T07:56:00",
      "expected": "2024-05-22T07:56:00",
      "journey": {
        "id": 2024052210988,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 1011,
        "name": "Slussen",
        "designation": "1"
      },
      "line": {
        "id": 17,
        "designation": "17",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans gröna linje"
      },
      "deviations": []
    },
    {
      "destination": "Ropsten",
      "direction_code": 1,
      "direction": "Ropsten",
      "state": "EXPECTED",
      "display": "8 min",
      "scheduled": "2024-05-22T07:57:00",
      "expected": "2024-05-22T07:57:09",
      "journey": {
        "id": 2024052220004,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 2011,
        "name": "Slussen",
        "designation": "2"
      },
      "line": {
        "id": 13,
        "designation": "13",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans röda linje"
      },
      "deviations": []
    },
    {
      "destination": "Vällingby",
      "direction_code": 1,
      "direction": "Hässelby strand",
      "state": "EXPECTED",
      "display": "9 min",
      "scheduled": "2024-05-22T07:58:00",
      "expected": "2024-05-22T07:58:00",
      "journey": {
        "id": 2024052210753,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 1011,
        "name": "Slussen",
        "designation": "1"
      },
      "line": {
        "id": 19,
        "designation": "19",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans gröna linje"
      },
      "deviations": []
    },
    {
      "destination": "Mörby centrum",
      "direction_code": 1,
      "direction": "Mörby centrum",
      "state": "EXPECTED",
      "display": "11 min",
      "scheduled": "2024-05-22T07:59:30",
      "expected": "2024-05-22T07:59:45",
      "journey": {
        "id": 2024052220087,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 2011,
        "name": "Slussen",
        "designation": "2"
      },
      "line": {
        "id": 14,
        "designation": "14",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans röda linje"
      },
      "deviations": []
    },
    {
      "destination": "Åkeshov",
      "direction_code": 1,
      "direction": "Hässelby strand",
      "state": "EXPECTED",
      "display": "11 min",
      "scheduled": "2024-05-22T08:00:00",
      "expected": "2024-05-22T08:00:00",
      "journey": {
        "id": 2024052210227,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 1011,
        "name": "Slussen",
        "designation": "1"
      },
      "line": {
        "id": 18,
        "designation": "18",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans gröna linje"
      },
      "deviations": []
    },
    {
      "destination": "Ropsten",
      "direction_code": 1,
      "direction": "Ropsten",
      "state": "EXPECTED",
      "display": "14 min",
      "scheduled": "2024-05-22T08:02:00",
      "expected": "2024-05-22T08:03:01",
      "journey": {
        "id": 2024052220612,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 2011,
        "name": "Slussen",
        "designation": "2"
      },
      "line": {
        "id": 13,
        "designation": "13",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans röda linje"
      },
      "deviations": []
    },
    {
      "destination": "Vällingby",
      "direction_code": 1,
      "direction": "Hässelby strand",
      "state": "EXPECTED",
      "display": "17 min",
      "scheduled": "2024-05-22T08:06:00",
      "expected": "2024-05-22T08:06:00",
      "journey": {
        "id": 2024052210989,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 1011,
        "name": "Slussen",
        "designation": "1"
      },
      "line": {
        "id": 17,
        "designation": "17",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans gröna linje"
      },
      "deviations": []
    },
    {
      "destination": "Hässelby strand",
      "direction_code": 1,
      "direction": "Hässelby strand",
      "state": "EXPECTED",
      "display": "19 min",
      "scheduled": "2024-05-22T08:08:00",
      "expected": "2024-05-22T08:08:00",
      "journey": {
        "id": 2024052210228,
        "state": "NORMALPROGRESS",
        "prediction_state": "NORMAL"
      },
      "stop_area": {
        "id": 1011,
        "name": "Slussen",
        "type": "METROSTN"
      },
      "stop_point": {
        "id": 1011,
        "name": "Slussen",
        "designation": "1"
      },
      "line": {
        "id": 18,
        "designation": "18",
        "transport_mode": "METRO",
        "group_of_lines": "Tunnelbanans gröna linje"
      },
      "deviations": []
    }
  ],
  "stop_deviations": [
    {
      "id": 3005547,
      "importance_level": 2,
      "message": "Skärmarbrink: Hissen mot plattformen för tåg mot Farsta strand och Skarpnäck är avstängd pga underhållsarbete. Hänvisning till den andra entrén",
      "scope": {
        "stop_points": [
          {
            "id": 1012,
            "name": "Slussen",
            "designation": "4"
          },
          {
            "id": 1022,
            "name": "Gamla stan",
            "designation": "4"
          },
          {
            "id": 1512,
            "name": "Medborgarplatsen",
            "designation": "2"
          },
          {
            "id": 1522,
            "name": "Skanstull",
            "designation": "2"
          },
          {
            "id": 1552,
            "name": "Gullmarsplan",
            "designation": "4"
          },
          {
            "id": 1602,
            "name": "Skärmarbrink",
            "designation": "4"
          },
          {
            "id": 1604,
            "name": "Skärmarbrink",
            "designation": "3"
          }
        ],
        "lines": [
          {
            "id": 17,
            "designation": "17",
            "transport_mode": "METRO",
            "group_of_lines": "Tunnelbanans gröna linje"
          },
          {
            "id": 18,
            "designation": "18",
            "transport_mode": "METRO",
            "group_of_lines": "Tunnelbanans gröna linje"
          },
          {
            "id": 19,
            "designation": "19",
            "transport_mode": "METRO",
            "group_of_lines": "Tunnelbanans gröna linje"
          }
        ]
      }
    },
    {
      "id": 3007150,
      "importance_level": 2,
      "message": "Liljeholmen: Hissarna från/till plattform 5 är avstängda pga tekniskt fel. Hänvisning till angränsande stationer eller tillgänglighetsgarantin",
      "scope": {
        "stop_points": [
          {
            "id": 2012,
            "name": "Slussen",
            "designation": "3"
          },
          {
            "id": 2022,
            "name": "Gamla stan",
            "designation": "3"
          },
          {
            "id": 2512,
            "name": "Mariatorget",
            "designation": "2"
          },
          {
            "id": 2522,
            "name": "Zinkensdamm",
            "designation": "2"
          },
          {
            "id": 2532,
            "name": "Hornstull",
            "designation": "2"
          },
          {
            "id": 2601,
            "name": "Liljeholmen",
            "designation": "1"
          },
          {
            "id": 2603,
            "name": "Liljeholmen",
            "designation": "2"
          }
        ],
        "lines": [
          {
            "id": 13,
            "designation": "13",
            "transport_mode": "METRO",
            "group_of_lines": "Tunnelbanans röda linje"
          },
          {
            "id": 14,
            "designation": "14",
            "transport_mode": "METRO",
            "group_of_lines": "Tunnelbanans röda linje"
          }
        ]
      }
    }
  ]
}

```

---

<div class="post-metadata">

### Author: ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)
#### Post date: [May 22, 2024, 7:05pm UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/6 "2024-05-22T19:05:26Z")

</div>

Hane you had time to look yet?

---

<div class="post-metadata">

### Author: ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)
#### Post date: [May 22, 2024, 11:43pm UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/7 "2024-05-22T23:43:09Z")

</div>

for the inner loop, you can’t use “for each item”, you should use “count with i from 1 to (length of departures)…” then use ‘i’ as index to departures:  
ie. departures[i].scheduled  
departures[i].expected

note: each departure[i] contains one scheduled and one expected.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/0/20dc3aed7be98fe891f106c09dd796ee898e3e93.png)

here’s the output

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/b/9b6c595dd50ed5971b0e173a85388ff926f74f09.png)

here’s the project for remix (open screen17)  
[https://x.thunkable.com/copy/5c619b6cf7b8da2176f08cf30fe3179b](https://x.thunkable.com/copy/5c619b6cf7b8da2176f08cf30fe3179b)

---

<div class="post-metadata">

### Author: ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)
#### Post date: [May 23, 2024, 5:00pm UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/8 "2024-05-23T17:00:35Z")

</div>

As you can see below @manyone your example did work perfectly well. THANK YOU 🙏 💓  
I just had to tweek it a bit and i will continue doing so. Based on the input you suggested - If i want to sort the data, for instance in “Line” number order. I have just taken the response “as is”

But perhaps i neee to do that in the Call already?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/9/b9a1f29623569087b361c378e8497a3d0609d751.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/6/e65a6a664573aae2c76af2b6a75fae75b3315e32.png)

---

<div class="post-metadata">

### Author: ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)
#### Post date: [May 23, 2024, 5:29pm UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/9 "2024-05-23T17:29:29Z")

</div>

there is no sort option in the call. if you need to sort your output, you have to do a preprocess step , similar to logic, in order to create a list of strings, where each string is “(numeric\_value\_of\_line\_id) :(value of index i)” (note icolon in between) . then sort the list… do a for-each-item-loop and obtain the (value of index i) using split text on the entry by “:” o extract i, and use i as the index for the departures array, as before. you can do the same for sorting on any field but make sure the sorting fields (first field) is properly aligned - ie. left for text, right for numbers.  
if you think your original question has been answered, please mark this Solved. thanks.

---

<div class="post-metadata">

### Author: ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)
#### Post date: [May 23, 2024, 5:36pm UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/10 "2024-05-23T17:36:04Z")

</div>

Again - Thank you  
I look into this too  
Case closed…

---

<div class="post-metadata">

### Author: ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)
#### Post date: [June 14, 2024, 5:36am UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/11 "2024-06-14T05:36:01Z")

</div>

Hello Manyone…  
I an into something else i do not understand…  
The follwíng image show the base of what you instructed. As you know it worked. However  
Now i only get one result - Even though i know it should be several… (See code and images)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/2/d21ec275324e2bc7e200d45cab924732939384bb.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/d/cd75a17dcc8158f484bbeb80822d4c4ebd2f6d7f.jpeg)

It seems to not loop through the full result. Can you see any errors here ?  
Appreciate a quick check your end. Thank you

```auto
{"departures": [{"destination": "Sofia","direction_code": 1,"direction": "Sofia","state": "EXPECTED","display": "Nu","scheduled": "2024-06-13T08:02:03","expected": "2024-06-13T08:00:42","journey": {"id": 2024061301384,"state": "NORMALPROGRESS","prediction_state": "UNRELIABLE"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 2,"designation": "2","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Radiohuset","direction_code": 2,"direction": "Radiohuset","state": "EXPECTED","display": "Nu","scheduled": "2024-06-13T08:00:04","expected": "2024-06-13T08:00:49","journey": {"id": 2024061303337,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 4,"designation": "4","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Universitetet","direction_code": 1,"direction": "Stora Lappkärrsberget","state": "EXPECTED","display": "1 min","scheduled": "2024-06-13T08:01:26","expected": "2024-06-13T08:00:57","journey": {"id": 2024061305403,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 50,"designation": "50","transport_mode": "BUS"},"deviations": []},{"destination": "Ruddammen","direction_code": 2,"direction": "Ruddammen","state": "EXPECTED","display": "2 min","scheduled": "2024-06-13T08:03:13","expected": "2024-06-13T08:02:01","journey": {"id": 2024061308279,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 61,"designation": "61","transport_mode": "BUS"},"deviations": []},{"destination": "Norrtull","direction_code": 2,"direction": "Norrtull","state": "EXPECTED","display": "2 min","scheduled": "2024-06-13T08:03:00","expected": "2024-06-13T08:02:45","journey": {"id": 2024061301260,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 2,"designation": "2","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Odenplan","direction_code": 2,"direction": "Odenplan","state": "EXPECTED","display": "3 min","scheduled": "2024-06-13T08:01:11","expected": "2024-06-13T08:03:07","journey": {"id": 2024061305296,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 50,"designation": "50","transport_mode": "BUS"},"deviations": []},{"destination": "Sundbybergs station","direction_code": 1,"direction": "Sundbybergs station","state": "EXPECTED","display": "3 min","scheduled": "2024-06-13T08:03:35","expected": "2024-06-13T08:03:35","journey": {"id": 2024061320777,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10547,"name": "Stadsbiblioteket"},"line": {"id": 515,"designation": "515","transport_mode": "BUS"},"deviations": [{"importance_level": 7,"consequence": "INFORMATION","message": "Stannar inte vid Kolonnvägen pga vägarbete"}]},{"destination": "Karolinska institutet","direction_code": 2,"direction": "Karolinska institutet","state": "EXPECTED","display": "4 min","scheduled": "2024-06-13T08:00:59","expected": "2024-06-13T08:04:09","journey": {"id": 2024061304606,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 6,"designation": "6","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Frihamnen","direction_code": 1,"direction": "Frihamnen","state": "EXPECTED","display": "4 min","scheduled": "2024-06-13T08:04:48","expected": "2024-06-13T08:04:37","journey": {"id": 2024061340246,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 72,"designation": "72","transport_mode": "BUS"},"deviations": []},{"destination": "Gullmarsplan","direction_code": 1,"direction": "Gullmarsplan","state": "EXPECTED","display": "5 min","scheduled": "2024-06-13T08:03:59","expected": "2024-06-13T08:05:26","journey": {"id": 2024061303502,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 4,"designation": "4","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Odenplan","direction_code": 2,"direction": "Odenplan","state": "EXPECTED","display": "5 min","scheduled": "2024-06-13T08:02:49","expected": "2024-06-13T08:05:29","journey": {"id": 2024061322104,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 50443,"name": "Stadsbiblioteket"},"line": {"id": 515,"designation": "515","transport_mode": "BUS"},"deviations": []},{"destination": "Frösundavik","direction_code": 2,"direction": "Frösundavik","state": "EXPECTED","display": "5 min","scheduled": "2024-06-13T07:57:53","expected": "2024-06-13T08:05:30","journey": {"id": 2024061307990,"state": "NORMALPROGRESS","prediction_state": "UNRELIABLE"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10547,"name": "Stadsbiblioteket"},"line": {"id": 57,"designation": "57","transport_mode": "BUS"},"deviations": []},{"destination": "Radiohuset","direction_code": 2,"direction": "Radiohuset","state": "EXPECTED","display": "6 min","scheduled": "2024-06-13T08:07:04","expected": "2024-06-13T08:06:16","journey": {"id": 2024061303338,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 4,"designation": "4","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Odenplan","direction_code": 2,"direction": "Odenplan","state": "EXPECTED","display": "6 min","scheduled": "2024-06-13T08:06:46","expected": "2024-06-13T08:06:35","journey": {"id": 2024061340064,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 67,"designation": "67","transport_mode": "BUS"},"deviations": []},{"destination": "Ropsten","direction_code": 1,"direction": "Ropsten","state": "EXPECTED","display": "6 min","scheduled": "2024-06-13T08:04:49","expected": "2024-06-13T08:06:43","journey": {"id": 2024061304495,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 6,"designation": "6","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Sergels torg","direction_code": 2,"direction": "Sergels torg","state": "EXPECTED","display": "6 min","scheduled": "2024-06-13T08:05:25","expected": "2024-06-13T08:06:45","journey": {"id": 2024061320727,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 50443,"name": "Stadsbiblioteket"},"line": {"id": 516,"designation": "516","transport_mode": "BUS"},"deviations": []},{"destination": "Karolinska sjukhuset","direction_code": 2,"direction": "Karolinska sjukhuset","state": "EXPECTED","display": "7 min","scheduled": "2024-06-13T08:06:35","expected": "2024-06-13T08:07:16","journey": {"id": 2024061340303,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 72,"designation": "72","transport_mode": "BUS"},"deviations": []},{"destination": "Stora Lappkärrsberget","direction_code": 1,"direction": "Stora Lappkärrsberget","state": "EXPECTED","display": "7 min","scheduled": "2024-06-13T08:07:26","expected": "2024-06-13T08:07:26","journey": {"id": 2024061305404,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 50,"designation": "50","transport_mode": "BUS"},"deviations": []},{"destination": "Hornsberg","direction_code": 1,"direction": "Hornsberg","state": "EXPECTED","display": "8 min","scheduled": "2024-06-13T08:07:14","expected": "2024-06-13T08:08:00","journey": {"id": 2024061308351,"state": "NORMALPROGRESS","prediction_state": "UNRELIABLE"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 61,"designation": "61","transport_mode": "BUS"},"deviations": []},{"destination": "Waldemarsudde","direction_code": 1,"direction": "Blockhusudden","state": "EXPECTED","display": "8 min","scheduled": "2024-06-13T08:08:49","expected": "2024-06-13T08:08:49","journey": {"id": 2024061340007,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 67,"designation": "67","transport_mode": "BUS"},"deviations": []},{"destination": "Odenplan","direction_code": 2,"direction": "Odenplan","state": "EXPECTED","display": "9 min","scheduled": "2024-06-13T08:08:11","expected": "2024-06-13T08:09:01","journey": {"id": 2024061305297,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 50,"designation": "50","transport_mode": "BUS"},"deviations": []},{"destination": "Sofia","direction_code": 1,"direction": "Sofia","state": "EXPECTED","display": "9 min","scheduled": "2024-06-13T08:09:03","expected": "2024-06-13T08:09:03","journey": {"id": 2024061301385,"state": "ATORIGIN","prediction_state": "UNRELIABLE"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 2,"designation": "2","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Gullmarsplan","direction_code": 1,"direction": "Gullmarsplan","state": "EXPECTED","display": "10 min","scheduled": "2024-06-13T08:09:59","expected": "2024-06-13T08:10:20","journey": {"id": 2024061303503,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 4,"designation": "4","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Karolinska institutet","direction_code": 2,"direction": "Karolinska institutet","state": "EXPECTED","display": "10 min","scheduled": "2024-06-13T08:08:59","expected": "2024-06-13T08:10:48","journey": {"id": 2024061304607,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 6,"designation": "6","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Norrtull","direction_code": 2,"direction": "Norrtull","state": "EXPECTED","display": "11 min","scheduled": "2024-06-13T08:10:00","expected": "2024-06-13T08:11:21","journey": {"id": 2024061301261,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 2,"designation": "2","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Sofia","direction_code": 1,"direction": "Sofia","state": "EXPECTED","display": "11 min","scheduled": "2024-06-13T08:08:00","expected": "2024-06-13T08:11:34","journey": {"id": 2024061307935,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 50443,"name": "Stadsbiblioteket"},"line": {"id": 57,"designation": "57","transport_mode": "BUS"},"deviations": []},{"destination": "Ruddammen","direction_code": 2,"direction": "Ruddammen","state": "EXPECTED","display": "12 min","scheduled": "2024-06-13T08:13:13","expected": "2024-06-13T08:12:12","journey": {"id": 2024061308280,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 61,"designation": "61","transport_mode": "BUS"},"deviations": []},{"destination": "Ropsten","direction_code": 1,"direction": "Ropsten","state": "EXPECTED","display": "12 min","scheduled": "2024-06-13T08:11:49","expected": "2024-06-13T08:12:17","journey": {"id": 2024061304496,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 6,"designation": "6","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Universitetet","direction_code": 1,"direction": "Stora Lappkärrsberget","state": "EXPECTED","display": "12 min","scheduled": "2024-06-13T08:12:26","expected": "2024-06-13T08:12:26","journey": {"id": 2024061305405,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 50,"designation": "50","transport_mode": "BUS"},"deviations": []},{"destination": "Odenplan","direction_code": 2,"direction": "Odenplan","state": "EXPECTED","display": "12 min","scheduled": "2024-06-13T08:10:49","expected": "2024-06-13T08:12:40","journey": {"id": 2024061322105,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 50443,"name": "Stadsbiblioteket"},"line": {"id": 515,"designation": "515","transport_mode": "BUS"},"deviations": []},{"destination": "Sergels torg","direction_code": 2,"direction": "Sergels torg","state": "EXPECTED","display": "13 min","scheduled": "2024-06-13T08:17:28","expected": "2024-06-13T08:13:03","journey": {"id": 2024061320728,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 50443,"name": "Stadsbiblioteket"},"line": {"id": 516,"designation": "516","transport_mode": "BUS"},"deviations": []},{"destination": "Radiohuset","direction_code": 2,"direction": "Radiohuset","state": "EXPECTED","display": "13 min","scheduled": "2024-06-13T08:11:04","expected": "2024-06-13T08:13:28","journey": {"id": 2024061303339,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 4,"designation": "4","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Frihamnen","direction_code": 1,"direction": "Frihamnen","state": "EXPECTED","display": "14 min","scheduled": "2024-06-13T08:14:48","expected": "2024-06-13T08:14:48","journey": {"id": 2024061340248,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 72,"designation": "72","transport_mode": "BUS"},"deviations": []},{"destination": "Sundbybergs station","direction_code": 1,"direction": "Sundbybergs station","state": "EXPECTED","display": "15 min","scheduled": "2024-06-13T08:15:29","expected": "2024-06-13T08:15:29","journey": {"id": 2024061320778,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10547,"name": "Stadsbiblioteket"},"line": {"id": 515,"designation": "515","transport_mode": "BUS"},"deviations": [{"importance_level": 7,"consequence": "INFORMATION","message": "Stannar inte vid Kolonnvägen pga vägarbete"}]},{"destination": "Frösundavik","direction_code": 2,"direction": "Frösundavik","state": "EXPECTED","display": "15 min","scheduled": "2024-06-13T08:12:53","expected": "2024-06-13T08:15:43","journey": {"id": 2024061307991,"state": "NORMALPROGRESS","prediction_state": "UNRELIABLE"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10547,"name": "Stadsbiblioteket"},"line": {"id": 57,"designation": "57","transport_mode": "BUS"},"deviations": []},{"destination": "Gullmarsplan","direction_code": 1,"direction": "Gullmarsplan","state": "EXPECTED","display": "16 min","scheduled": "2024-06-13T08:15:59","expected": "2024-06-13T08:15:59","journey": {"id": 2024061303504,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 4,"designation": "4","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Karolinska institutet","direction_code": 2,"direction": "Karolinska institutet","state": "EXPECTED","display": "16 min","scheduled": "2024-06-13T08:15:59","expected": "2024-06-13T08:15:59","journey": {"id": 2024061304608,"state": "ATORIGIN","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 6,"designation": "6","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Sofia","direction_code": 1,"direction": "Sofia","state": "EXPECTED","display": "16 min","scheduled": "2024-06-13T08:16:03","expected": "2024-06-13T08:16:03","journey": {"id": 2024061301386,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 2,"designation": "2","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Karolinska sjukhuset","direction_code": 2,"direction": "Karolinska sjukhuset","state": "EXPECTED","display": "16 min","scheduled": "2024-06-13T08:16:35","expected": "2024-06-13T08:16:35","journey": {"id": 2024061340304,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 72,"designation": "72","transport_mode": "BUS"},"deviations": []},{"destination": "Odenplan","direction_code": 2,"direction": "Odenplan","state": "EXPECTED","display": "17 min","scheduled": "2024-06-13T08:15:11","expected": "2024-06-13T08:17:13","journey": {"id": 2024061305298,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 50,"designation": "50","transport_mode": "BUS"},"deviations": []},{"destination": "Hornsberg","direction_code": 1,"direction": "Hornsberg","state": "EXPECTED","display": "17 min","scheduled": "2024-06-13T08:17:14","expected": "2024-06-13T08:17:14","journey": {"id": 2024061308352,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 61,"designation": "61","transport_mode": "BUS"},"deviations": []},{"destination": "Norrtull","direction_code": 2,"direction": "Norrtull","state": "EXPECTED","display": "17 min","scheduled": "2024-06-13T08:15:00","expected": "2024-06-13T08:17:52","journey": {"id": 2024061301262,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 2,"designation": "2","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Ropsten","direction_code": 1,"direction": "Ropsten","state": "EXPECTED","display": "20 min","scheduled": "2024-06-13T08:19:49","expected": "2024-06-13T08:20:17","journey": {"id": 2024061304497,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 6,"designation": "6","transport_mode": "BUS","group_of_lines": "Blåbuss"},"deviations": []},{"destination": "Odenplan","direction_code": 2,"direction": "Odenplan","state": "EXPECTED","display": "20 min","scheduled": "2024-06-13T08:20:38","expected": "2024-06-13T08:20:38","journey": {"id": 2024061322107,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 50443,"name": "Stadsbiblioteket"},"line": {"id": 515,"designation": "515","transport_mode": "BUS"},"deviations": []},{"destination": "Ruddammen","direction_code": 2,"direction": "Ruddammen","state": "EXPECTED","display": "22 min","scheduled": "2024-06-13T08:23:13","expected": "2024-06-13T08:22:12","journey": {"id": 2024061308281,"state": "NORMALPROGRESS","prediction_state": "NORMAL"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 61,"designation": "61","transport_mode": "BUS"},"deviations": []},{"destination": "Sundbybergs station","direction_code": 1,"direction": "Sundbybergs station","state": "EXPECTED","display": "22 min","scheduled": "2024-06-13T08:22:29","expected": "2024-06-13T08:22:29","journey": {"id": 2024061320779,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10547,"name": "Stadsbiblioteket"},"line": {"id": 515,"designation": "515","transport_mode": "BUS"},"deviations": [{"importance_level": 7,"consequence": "INFORMATION","message": "Stannar inte vid Kolonnvägen pga vägarbete"}]},{"destination": "Waldemarsudde","direction_code": 1,"direction": "Blockhusudden","state": "EXPECTED","display": "22 min","scheduled": "2024-06-13T08:22:49","expected": "2024-06-13T08:22:49","journey": {"id": 2024061340008,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 67,"designation": "67","transport_mode": "BUS"},"deviations": []},{"destination": "Sofia","direction_code": 1,"direction": "Sofia","state": "EXPECTED","display": "24 min","scheduled": "2024-06-13T08:23:00","expected": "2024-06-13T08:24:33","journey": {"id": 2024061307936,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 50443,"name": "Stadsbiblioteket"},"line": {"id": 57,"designation": "57","transport_mode": "BUS"},"deviations": []},{"destination": "Frihamnen","direction_code": 1,"direction": "Frihamnen","state": "EXPECTED","display": "25 min","scheduled": "2024-06-13T08:24:48","expected": "2024-06-13T08:25:17","journey": {"id": 2024061340247,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 72,"designation": "72","transport_mode": "BUS"},"deviations": []},{"destination": "Sergels torg","direction_code": 2,"direction": "Sergels torg","state": "EXPECTED","display": "25 min","scheduled": "2024-06-13T08:25:28","expected": "2024-06-13T08:25:28","journey": {"id": 2024061320729,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 50443,"name": "Stadsbiblioteket"},"line": {"id": 516,"designation": "516","transport_mode": "BUS"},"deviations": []},{"destination": "Hornsberg","direction_code": 1,"direction": "Hornsberg","state": "EXPECTED","display": "27 min","scheduled": "2024-06-13T08:27:14","expected": "2024-06-13T08:27:14","journey": {"id": 2024061308353,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 61,"designation": "61","transport_mode": "BUS"},"deviations": []},{"destination": "Karolinska sjukhuset","direction_code": 2,"direction": "Karolinska sjukhuset","state": "EXPECTED","display": "27 min","scheduled": "2024-06-13T08:27:17","expected": "2024-06-13T08:27:17","journey": {"id": 2024061340305,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 72,"designation": "72","transport_mode": "BUS"},"deviations": []},{"destination": "Odenplan","direction_code": 2,"direction": "Odenplan","state": "EXPECTED","display": "29 min","scheduled": "2024-06-13T08:29:12","expected": "2024-06-13T08:29:12","journey": {"id": 2024061340065,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 67,"designation": "67","transport_mode": "BUS"},"deviations": []},{"destination": "Frösundavik","direction_code": 2,"direction": "Frösundavik","state": "EXPECTED","display": "34 min","scheduled": "2024-06-13T08:27:53","expected": "2024-06-13T08:34:05","journey": {"id": 2024061307992,"state": "NORMALPROGRESS","prediction_state": "UNRELIABLE"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10547,"name": "Stadsbiblioteket"},"line": {"id": 57,"designation": "57","transport_mode": "BUS"},"deviations": []},{"destination": "Waldemarsudde","direction_code": 1,"direction": "Blockhusudden","state": "EXPECTED","display": "08:38","scheduled": "2024-06-13T08:38:33","expected": "2024-06-13T08:38:33","journey": {"id": 2024061340009,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10189,"name": "Stadsbiblioteket"},"line": {"id": 67,"designation": "67","transport_mode": "BUS"},"deviations": []},{"destination": "Sofia","direction_code": 1,"direction": "Sofia","state": "EXPECTED","display": "08:41","scheduled": "2024-06-13T08:41:00","expected": "2024-06-13T08:41:00","journey": {"id": 2024061307937,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 50443,"name": "Stadsbiblioteket"},"line": {"id": 57,"designation": "57","transport_mode": "BUS"},"deviations": []},{"destination": "Odenplan","direction_code": 2,"direction": "Odenplan","state": "EXPECTED","display": "08:48","scheduled": "2024-06-13T08:48:12","expected": "2024-06-13T08:48:12","journey": {"id": 2024061340066,"state": "EXPECTED"},"stop_area": {"id": 10188,"name": "Stadsbiblioteket","type": "BUSTERM"},"stop_point": {"id": 10188,"name": "Stadsbiblioteket"},"line": {"id": 67,"designation": "67","transport_mode": "BUS"},"deviations": []}],"stop_deviations": []}

```

---

<div class="post-metadata">

### Author: ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)
#### Post date: [June 14, 2024, 6:04am UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/12 "2024-06-14T06:04:50Z")

</div>

you’re missing the name of the 1st level segment ‘departures’ (see #1 ?)  
and you misspelled ‘stop\_area.name’ (see #2 ?)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/6/96f291f55f78b67e691c3b0dbe4f9658919f4925.jpeg)

if i get this from the json:  
“scheduled”: “2024-05-22T07:49:30”  
and i only want to show the hour and minute, i would change the block from  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0fb805051973ade643477ce10311c20fbb29c663.png)

to

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/2/2264ea5308c6d8a16dd373c6637a7aec3b512add.png)

the json is returning the string value of the formatted time - so the easiest way to get a portion of that string is by using the substring block (as shown above

---

<div class="post-metadata">

### Author: ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)
#### Post date: [June 17, 2024, 3:54am UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/13 "2024-06-17T03:54:39Z")

</div>

Excellent. Thansk you @manyone  
Worked fine

But i also have a directly related question again to this topic.  
The result i put together using the “Get property of object” block is this: See image

 ![Screenshot 2024-06-19 at 22.12.17.jpeg](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/5/e5cad69afd70b399554d4cb908633c991c1df4be.png)

As you can see the result is:  
STD 22:18:15  
ETD 22:18:55

Now, I want to remove the market “Seconds”

:15 and :55 from these two lines - How ever i can get it done i i dont understand how to remove it in each of the “Get property of object” block.

Can you give me a hint? Those seconds are irrelevant in this case.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [June 17, 2024, 9:30am UTC](https://community.thunkable.com/t/solved-parsing-challange-api-response/3016275/14 "2024-06-17T09:30:52Z")

</div>


