Skip to content

Instantly share code, notes, and snippets.

@perlasivakrishna
Created May 26, 2021 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perlasivakrishna/b268062d006989d39dcaf74e0542d7a5 to your computer and use it in GitHub Desktop.
Save perlasivakrishna/b268062d006989d39dcaf74e0542d7a5 to your computer and use it in GitHub Desktop.
Sample Json
{
"routeInfo": [
{
"id": "r002",
"name": "k-12",
"source": "Yashwantpur",
"tripDuration": "2hrs",
"destination": "Marathahalli",
"icon": "http://"
},
{
"id": "r003",
"name": "k-11",
"tripDuration": "45 min",
"source": "Koramangala",
"destination": "Bomanhalli",
"icon": "http://"
},
{
"id": "r004",
"name": "k-14",
"source": "E City",
"tripDuration": "1hrs",
"destination": "Silk Board",
"icon": "http://"
},
{
"id": "r001",
"name": "R-1",
"source": "Marathahalli",
"tripDuration": "2hrs",
"destination": "E City",
"icon": "http://"
},
{
"id": "r005",
"name": "G-12",
"tripDuration": "2hrs",
"source": "Koramangala",
"destination": "E City",
"icon": "http://"
}
],
"routeTimings": {
"r002": [
{
"totalSeats": 13,
"avaiable": 5,
"tripStartTime": "18:40"
},
{
"totalSeats": 13,
"avaiable": 0,
"tripStartTime": "18:48"
},
{
"totalSeats": 13,
"avaiable": 1,
"tripStartTime": "19:05"
}
],
"r005": [
{
"totalSeats": 13,
"avaiable": 5,
"tripStartTime": "19:10"
},
{
"totalSeats": 13,
"avaiable": 0,
"tripStartTime": "19:00"
},
{
"totalSeats": 13,
"avaiable": 1,
"tripStartTime": "19:05"
}
],
"r001": [
],
"r004": [
{
"totalSeats": 13,
"avaiable": 5,
"tripStartTime": "14:55"
},
{
"totalSeats": 13,
"avaiable": 0,
"tripStartTime": "15:00"
},
{
"totalSeats": 13,
"avaiable": 1,
"tripStartTime": "15:05"
}
],
"r003": [
{
"totalSeats": 12,
"avaiable": 10,
"tripStartTime": "15:55"
},
{
"totalSeats": 12,
"avaiable": 9,
"tripStartTime": "20:00"
},
{
"totalSeats": 12,
"avaiable": 1,
"tripStartTime": "19:05"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment