Skip to content

Instantly share code, notes, and snippets.

@isabellatea
Created May 4, 2019 10:34
Show Gist options
  • Save isabellatea/11a96b6425540cfc82534a329ae96e0f to your computer and use it in GitHub Desktop.
Save isabellatea/11a96b6425540cfc82534a329ae96e0f to your computer and use it in GitHub Desktop.
JSON Exercise
let pikachu = {
"name":"pikachu",
"id":25,
"order":35,
"species":{
"name":"pikachu",
"url":"https://pokeapi.co/api/v2/pokemon-species/25/"
},
"height":4,
"weight":60,
"moves":[
{
"move":{
"name":"thunder-punch",
"url":"https://pokeapi.co/api/v2/move/9/"
}
},
{
"move":{
"name":"thunder-shock",
"url":"https://pokeapi.co/api/v2/move/84/"
}
},
{
"move":{
"name":"thunderbolt",
"url":"https://pokeapi.co/api/v2/move/85/"
}
}
],
"sprites":{
"back_default":"https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/25.png",
"front_default":"https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/25.png",
},
"stats":[
{
"base_stat":90,
"stat":{
"name":"speed",
"url":"https://pokeapi.co/api/v2/stat/6/"
}
},
{
"base_stat":40,
"stat":{
"name":"defense",
"url":"https://pokeapi.co/api/v2/stat/3/"
}
},
{
"base_stat":55,
"stat":{
"name":"attack",
"url":"https://pokeapi.co/api/v2/stat/2/"
}
},
{
"base_stat":35,
"stat":{
"name":"hp",
"url":"https://pokeapi.co/api/v2/stat/1/"
}
}
],
"types":[
{
"type":{
"name":"electric",
"url":"https://pokeapi.co/api/v2/type/13/"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment