Skip to content

Instantly share code, notes, and snippets.

@mfyz
Created January 2, 2020 06:50
Show Gist options
  • Save mfyz/59eb69dc9a1dc7d7c8ff74cdbb2cff98 to your computer and use it in GitHub Desktop.
Save mfyz/59eb69dc9a1dc7d7c8ff74cdbb2cff98 to your computer and use it in GitHub Desktop.
Example well structured json
{
"first_name": "Sammy",
"last_name": "Shark",
"location": "Ocean",
"social_media": [
{
"description": "twitter",
"link": "https://twitter.com/digitalocean"
},
{
"description": "facebook",
"link": "https://www.facebook.com/DigitalOceanCloudHosting"
},
{
"description": "github",
"link": "https://github.com/digitalocean"
}
],
"websites": [
{
"URL": "https://www.digitalocean.com/",
"description": "work"
},
{
"URL": "https://www.digitalocean.com/community/tutorials",
"desciption": "tutorials"
}
],
"recipies": [
{
"batters": {
"batter": [
{
"id": "1001",
"type": "Regular"
},
{
"id": "1002",
"type": "Chocolate"
},
{
"id": "1003",
"type": "Blueberry"
},
{
"id": "1004",
"type": "Devil's Food"
}
]
},
"id": "0001",
"name": "Cake",
"ppu": 0.55,
"topping": [
{
"id": "5001",
"type": "None"
},
{
"id": "5002",
"type": "Glazed"
},
{
"id": "5005",
"type": "Sugar"
},
{
"id": "5007",
"type": "Powdered Sugar"
},
{
"id": "5006",
"type": "Chocolate with Sprinkles"
},
{
"id": "5003",
"type": "Chocolate"
},
{
"id": "5004",
"type": "Maple"
}
],
"type": "donut"
},
{
"batters": {
"batter": [
{
"id": "1001",
"type": "Regular"
}
]
},
"id": "0002",
"name": "Raised",
"ppu": 0.55,
"topping": [
{
"id": "5001",
"type": "None"
},
{
"id": "5002",
"type": "Glazed"
},
{
"id": "5005",
"type": "Sugar"
},
{
"id": "5003",
"type": "Chocolate"
},
{
"id": "5004",
"type": "Maple"
}
],
"type": "donut"
},
{
"batters": {
"batter": [
{
"id": "1001",
"type": "Regular"
},
{
"id": "1002",
"type": "Chocolate"
}
]
},
"id": "0003",
"name": "Old Fashioned",
"ppu": 0.55,
"topping": [
{
"id": "5001",
"type": "None"
},
{
"id": "5002",
"type": "Glazed"
},
{
"id": "5003",
"type": "Chocolate"
},
{
"id": "5004",
"type": "Maple"
}
],
"type": "donut"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment