I have a JSON in the format.
var input = [
{status:"good", state: "NY"},
{status:"bad", state: "FL"},
{status:"decent", state: "CA"}
]
I want to transform it in an object of the format:
myObj = {NY:"good",FL:"bad",CA:"decent"}
The reason I want this is so that I can easily grab the myObj.NY value.