Skip to content

Instantly share code, notes, and snippets.

@promisedlandt
Created February 8, 2014 03:01
Show Gist options
  • Save promisedlandt/8876007 to your computer and use it in GitHub Desktop.
Save promisedlandt/8876007 to your computer and use it in GitHub Desktop.
Superfluous array in mtgapi.com response by text
curl http://mtgapi.com/api/v1/fetch/search/tundra\?token\=censored | json_pp
[
[
{
"cmc" : "",
"image" : "http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=202424&type=card",
"text" : [],
"name" : "Tundra",
},
{
"artist" : "Matt Cavotta",
"cmc" : "3",
"image" : "http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=26805&type=card",
"name" : "Tundra Kavu",
"text" : [
"{tap} : Target land becomes a Plains or an Island until end of turn."
],
"id" : "26805",
},
{
"set" : "Tenth Edition",
"name" : "Tundra Wolves",
"text" : [
"First strike (This creature deals combat damage before creatures without first strike.)"
],
"cmc" : "1",
"image" : "http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=129604&type=card"
}
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment