I'm using an AJAX request to return the following string:
{"city":"Seattle","country":"US","weather":[{"icon":"10d","temperature":46.6},{"icon":"13d","temperature":43.16},{"icon":"13d","temperature":43.43},{"icon":"13d","temperature":40.55},{"icon":"01d","temperature":37.33},{"icon":"10d","temperature":41.86},{"icon":"10d","temperature":43.32}]}
I want to split that string so I can get each of the icon string values ("10d", "13d" etc) as well as each of the temperatures ("46.6", "43.16" etc) but I'm not entirely sure how to go about doing that. It seems like I would need to split the string but I'm not sure if that's the best way to go about it