Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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"}
]
@shanefulmer

This comment has been minimized.

Copy link

shanefulmer commented Sep 27, 2013

You rock!

@tannerjt

This comment has been minimized.

Copy link

tannerjt commented Mar 27, 2014

I started a similar project, which has all states along with a beautiful photo of each state. Heres my repo if anybody is interested in using or forking it:
https://github.com/tannerjt/state_images.json

@sainaselva

This comment has been minimized.

Copy link

sainaselva commented Jun 11, 2014

Hi, this is very useful. and i have an one doubt, is it possible for state code for all the states?

@dennishall1

This comment has been minimized.

Copy link

dennishall1 commented Aug 11, 2014

There are two typos: "Lousiana" should be "Louisiana", and "Kansa" should be "Kansas"

@josephlee10

This comment has been minimized.

Copy link

josephlee10 commented May 30, 2015

Yay

@harigopalakrishna

This comment has been minimized.

Copy link

harigopalakrishna commented Dec 5, 2015

Perfect!

@ghost

This comment has been minimized.

Copy link

ghost commented Dec 5, 2015

should be "Louisiana", and "Kansa" should be "Kansas"

@ghost

This comment has been minimized.

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

This comment has been minimized.

Copy link

Krusheuski commented Aug 29, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.