splitting a text from a weather API

ruder's icon

Hi to everyone,
I'm new to the world of max and I need your help.
I collected weather data from here: http://api.openweathermap.org/data/2.5/weather?lat=10&lon=10
I'm also able to change directly in Max the latitude and longitude and collect the text with all the datas. my question is: how can I split the text to obtain the single values? (for example the temperature...). I tried to understand how the command jit.str.regexp (if it's the right one) works but I didn't figure out anything.
I added also my patch so maybe you can undestand better what I need.
Thanks

weather_report03.maxpat
Max Patch
Floating Point's icon
Max Patch
Copy patch and select New From Clipboard in Max.

this may not be the best way to do it but seems to work:

ruder's icon
Max Patch
Copy patch and select New From Clipboard in Max.

thanks! that's the code to change latitude and longitude to obtain weather data!

Floating Point's icon

yes it does work-- when I put my coords in where I live it said sunny and clear-- I looked out the window and it was! but yes I've kept your patch for future use ;-]