I’m doing a $.getJSON to retrieve some data and it’s giving me back the following:
address = 1233 Abc St
address2 = Suite 123
city = San Francisco
state = CA
zip = 12345
What I would ideally want is to have this broken into an array like:
array['address'] = "1233 Abc St"
array['address2'] = "Suite 123"
...
This seems like it would be simple regex, but I can’t quite wrap my head around it.
This is easier done by iteration: