modified weather script to support json output, by adding &format=json in the query