Skip to content

Instantly share code, notes, and snippets.

@emiralp
Created April 6, 2015 12:41
Show Gist options
  • Save emiralp/ebf902f0af52888f74ce to your computer and use it in GitHub Desktop.
Save emiralp/ebf902f0af52888f74ce to your computer and use it in GitHub Desktop.
Json example
[
{
"port": {
"id": 1,
"name": "Yenikapı",
"slug": "yenikapi",
"terminal_code": "YKP"
},
"arrival_ports": [
{
"id": 7,
"name": "Bandırma",
"slug": null,
"terminal_code": "BDM"
},
{
"id": 8,
"name": "Yalova",
"slug": null,
"terminal_code": "YLV"
},
{
"id": 11,
"name": "Marmara",
"slug": null,
"terminal_code": "MAR"
},
{
"id": 12,
"name": "Avşa",
"slug": null,
"terminal_code": "AVA"
},
{
"id": 2,
"name": "Bursa",
"slug": "bursa",
"terminal_code": "BRS"
},
{
"id": 4,
"name": "Armutlu T.K.",
"slug": null,
"terminal_code": "ART"
},
{
"id": 5,
"name": "Armutlu",
"slug": null,
"terminal_code": "ARM"
},
{
"id": 6,
"name": "Kumla",
"slug": null,
"terminal_code": "KUM"
},
{
"id": 18,
"name": "Çınarcık",
"slug": "cinarcik",
"terminal_code": "CNK"
},
{
"id": 19,
"name": "Esenköy",
"slug": "esenkoy",
"terminal_code": "ESY"
}
]
},
{
"port": {
"id": 9,
"name": "Pendik",
"slug": null,
"terminal_code": "PEN"
},
"arrival_ports": [
{
"id": 8,
"name": "Yalova",
"slug": null,
"terminal_code": "YLV"
}
]
},
{
"port": {
"id": 7,
"name": "Bandırma",
"slug": null,
"terminal_code": "BDM"
},
"arrival_ports": [
{
"id": 1,
"name": "Yenikapı",
"slug": "yenikapi",
"terminal_code": "YKP"
}
]
},
{
"port": {
"id": 2,
"name": "Bursa",
"slug": "bursa",
"terminal_code": "BRS"
},
"arrival_ports": [
{
"id": 1,
"name": "Yenikapı",
"slug": "yenikapi",
"terminal_code": "YKP"
},
{
"id": 3,
"name": "Kadıköy",
"slug": null,
"terminal_code": "KDY"
}
]
},
{
"port": {
"id": 8,
"name": "Yalova",
"slug": null,
"terminal_code": "YLV"
},
"arrival_ports": [
{
"id": 1,
"name": "Yenikapı",
"slug": "yenikapi",
"terminal_code": "YKP"
},
{
"id": 9,
"name": "Pendik",
"slug": null,
"terminal_code": "PEN"
},
{
"id": 13,
"name": "Kartal",
"slug": null,
"terminal_code": "KAR"
}
]
},
{
"port": {
"id": 12,
"name": "Avşa",
"slug": null,
"terminal_code": "AVA"
},
"arrival_ports": [
{
"id": 1,
"name": "Yenikapı",
"slug": "yenikapi",
"terminal_code": "YKP"
},
{
"id": 10,
"name": "Bostancı",
"slug": null,
"terminal_code": "BST"
}
]
},
{
"port": {
"id": 11,
"name": "Marmara",
"slug": null,
"terminal_code": "MAR"
},
"arrival_ports": [
{
"id": 1,
"name": "Yenikapı",
"slug": "yenikapi",
"terminal_code": "YKP"
},
{
"id": 10,
"name": "Bostancı",
"slug": null,
"terminal_code": "BST"
}
]
},
{
"port": {
"id": 6,
"name": "Kumla",
"slug": null,
"terminal_code": "KUM"
},
"arrival_ports": [
{
"id": 1,
"name": "Yenikapı",
"slug": "yenikapi",
"terminal_code": "YKP"
},
{
"id": 3,
"name": "Kadıköy",
"slug": null,
"terminal_code": "KDY"
}
]
},
{
"port": {
"id": 5,
"name": "Armutlu",
"slug": null,
"terminal_code": "ARM"
},
"arrival_ports": [
{
"id": 1,
"name": "Yenikapı",
"slug": "yenikapi",
"terminal_code": "YKP"
},
{
"id": 3,
"name": "Kadıköy",
"slug": null,
"terminal_code": "KDY"
}
]
},
{
"port": {
"id": 4,
"name": "Armutlu T.K.",
"slug": null,
"terminal_code": "ART"
},
"arrival_ports": [
{
"id": 1,
"name": "Yenikapı",
"slug": "yenikapi",
"terminal_code": "YKP"
},
{
"id": 3,
"name": "Kadıköy",
"slug": null,
"terminal_code": "KDY"
}
]
},
{
"port": {
"id": 10,
"name": "Bostancı",
"slug": null,
"terminal_code": "BST"
},
"arrival_ports": [
{
"id": 11,
"name": "Marmara",
"slug": null,
"terminal_code": "MAR"
},
{
"id": 12,
"name": "Avşa",
"slug": null,
"terminal_code": "AVA"
},
{
"id": 18,
"name": "Çınarcık",
"slug": "cinarcik",
"terminal_code": "CNK"
},
{
"id": 19,
"name": "Esenköy",
"slug": "esenkoy",
"terminal_code": "ESY"
}
]
},
{
"port": {
"id": 3,
"name": "Kadıköy",
"slug": null,
"terminal_code": "KDY"
},
"arrival_ports": [
{
"id": 4,
"name": "Armutlu T.K.",
"slug": null,
"terminal_code": "ART"
},
{
"id": 5,
"name": "Armutlu",
"slug": null,
"terminal_code": "ARM"
},
{
"id": 6,
"name": "Kumla",
"slug": null,
"terminal_code": "KUM"
},
{
"id": 2,
"name": "Bursa",
"slug": "bursa",
"terminal_code": "BRS"
}
]
},
{
"port": {
"id": 19,
"name": "Esenköy",
"slug": "esenkoy",
"terminal_code": "ESY"
},
"arrival_ports": [
{
"id": 1,
"name": "Yenikapı",
"slug": "yenikapi",
"terminal_code": "YKP"
},
{
"id": 10,
"name": "Bostancı",
"slug": null,
"terminal_code": "BST"
}
]
},
{
"port": {
"id": 13,
"name": "Kartal",
"slug": null,
"terminal_code": "KAR"
},
"arrival_ports": [
{
"id": 8,
"name": "Yalova",
"slug": null,
"terminal_code": "YLV"
}
]
},
{
"port": {
"id": 18,
"name": "Çınarcık",
"slug": "cinarcik",
"terminal_code": "CNK"
},
"arrival_ports": [
{
"id": 1,
"name": "Yenikapı",
"slug": "yenikapi",
"terminal_code": "YKP"
},
{
"id": 10,
"name": "Bostancı",
"slug": null,
"terminal_code": "BST"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment