[SOLVED] Parsing challange API response

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:

But this does not:

Any ideas?
Regards
Stefan



{
  "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"
      }
    }
  ]
}

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.

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!! :pray: :upside_down_face:

And PS - Is it really an Array??

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:

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

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.

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 :smiley:

{
  "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"
          }
        ]
      }
    }
  ]
}

Hane you had time to look yet?

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.

here’s the output

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

1 Like

As you can see below @manyone your example did work perfectly well. THANK YOU :pray: :heartbeat:
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?

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.

1 Like

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

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)

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

{"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": []}

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

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

to

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

1 Like

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

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.