Skip to content

Instantly share code, notes, and snippets.

@tvpmb
Created February 7, 2013 22:10
Show Gist options
  • Save tvpmb/4734703 to your computer and use it in GitHub Desktop.
Save tvpmb/4734703 to your computer and use it in GitHub Desktop.
JSON Array with List of US States with 2-char ISO codes.
[
{"name":"Alabama","alpha-2":"AL"},
{"name":"Alaska","alpha-2":"AK"},
{"name":"Arizona","alpha-2":"AZ"},
{"name":"Arkansas","alpha-2":"AR"},
{"name":"California","alpha-2":"CA"},
{"name":"Colorado","alpha-2":"CO"},
{"name":"Connecticut","alpha-2":"CT"},
{"name":"Delaware","alpha-2":"DE"},
{"name":"District of Columbia","alpha-2":"DC"},
{"name":"Florida","alpha-2":"FL"},
{"name":"Georgia","alpha-2":"GA"},
{"name":"Hawaii","alpha-2":"HI"},
{"name":"Idaho","alpha-2":"ID"},
{"name":"Illinois","alpha-2":"IL"},
{"name":"Indiana","alpha-2":"IN"},
{"name":"Iowa","alpha-2":"IA"},
{"name":"Kansa","alpha-2":"KS"},
{"name":"Kentucky","alpha-2":"KY"},
{"name":"Lousiana","alpha-2":"LA"},
{"name":"Maine","alpha-2":"ME"},
{"name":"Maryland","alpha-2":"MD"},
{"name":"Massachusetts","alpha-2":"MA"},
{"name":"Michigan","alpha-2":"MI"},
{"name":"Minnesota","alpha-2":"MN"},
{"name":"Mississippi","alpha-2":"MS"},
{"name":"Missouri","alpha-2":"MO"},
{"name":"Montana","alpha-2":"MT"},
{"name":"Nebraska","alpha-2":"NE"},
{"name":"Nevada","alpha-2":"NV"},
{"name":"New Hampshire","alpha-2":"NH"},
{"name":"New Jersey","alpha-2":"NJ"},
{"name":"New Mexico","alpha-2":"NM"},
{"name":"New York","alpha-2":"NY"},
{"name":"North Carolina","alpha-2":"NC"},
{"name":"North Dakota","alpha-2":"ND"},
{"name":"Ohio","alpha-2":"OH"},
{"name":"Oklahoma","alpha-2":"OK"},
{"name":"Oregon","alpha-2":"OR"},
{"name":"Pennsylvania","alpha-2":"PA"},
{"name":"Rhode Island","alpha-2":"RI"},
{"name":"South Carolina","alpha-2":"SC"},
{"name":"South Dakota","alpha-2":"SD"},
{"name":"Tennessee","alpha-2":"TN"},
{"name":"Texas","alpha-2":"TX"},
{"name":"Utah","alpha-2":"UT"},
{"name":"Vermont","alpha-2":"VT"},
{"name":"Virginia","alpha-2":"VA"},
{"name":"Washington","alpha-2":"WA"},
{"name":"West Virginia","alpha-2":"WV"},
{"name":"Wisconsin","alpha-2":"WI"},
{"name":"Wyoming","alpha-2":"WY"}
]
Copy link

ghost commented Dec 14, 2017

Wish I would have read the comments before trying to consume this!
But yes typos as dennishall1 & ghost have explained above with Kansas and Louisiana

@Krusheuski
Copy link

Krusheuski commented Aug 29, 2018

Error: District of Columbia is not state!
There are currently 50 states!

@nsapo
Copy link

nsapo commented Mar 15, 2021

thanks :)

@argentaegis
Copy link

This is genius time saving code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment