Hi,
Trying a bit to create an app but I run into an issue with the api.
Does anyone know a good page on the web that explains how to parse out details from a complicated response. In the example below time
{
“Departure”: [
{
“JourneyDetailRef”: {
“ref”: “1|114336|1|1|1032022”
},
“JourneyStatus”: “P”,
“ProductAtStop”: {
“icon”: {
“res”: “prod_gen”
},
“name”: “Länstrafik - Buss Svart”,
“internalName”: “Länstrafik - Buss Svart”,
“displayNumber”: “Svart”,
“num”: “Svart”,
“line”: “Svart”,
“lineId”: “1279521100001”,
“catOut”: “BLT”,
“catIn”: “BLT”,
“catCode”: “7”,
“cls”: “128”,
“catOutS”: “BLT”,
“catOutL”: “Länstrafik - Buss”,
“operatorCode”: “279”,
“operator”: “Västtrafik”,
“admin”: “279___”,
“matchId”: “Svart;5211;255152”
},
“Product”: [
{
“icon”: {
“res”: “prod_gen”
},
“name”: “Länstrafik - Buss Svart”,
“internalName”: “Länstrafik - Buss Svart”,
“displayNumber”: “Svart”,
“num”: “Svart”,
“line”: “Svart”,
“lineId”: “1279521100001”,
“catOut”: “BLT”,
“catIn”: “BLT”,
“catCode”: “7”,
“cls”: “128”,
“catOutS”: “BLT”,
“catOutL”: “Länstrafik - Buss”,
“operatorCode”: “279”,
“operator”: “Västtrafik”,
“admin”: “279___”,
“routeIdxFrom”: 15,
“routeIdxTo”: 29,
“matchId”: “Svart;5211;255152”
}
],
“name”: “Länstrafik - Buss Svart”,
“type”: “ST”,
“stop”: “Kvisljungeby (Göteborg kn)”,
“stopid”: “A=1@O=Kvisljungeby (Göteborg kn)@X=11830299@Y=57754291@U=1@L=740059381@”,
“stopExtId”: “740059381”,
"time": “19:29:00”,
“date”: “2022-03-01”,
“reachable”: true,
“direction”: “Sävedalen Ljungkullen (Partille kn)”,
“directionFlag”: “1”
},
{
“JourneyDetailRef”: {
“ref”: “1|114336|2|1|1032022”
},
“JourneyStatus”: “P”,
Thanks in advance