Yahoo weather-api response as json

Muhammad Zeeshan picture Muhammad Zeeshan · Feb 15, 2011 · Viewed 43k times · Source

I am using yahoo weather api to get weather information

This is returning an xml output.
I want to get it in JSON format. How can i get this as JSON?

Answer

seeingidog picture seeingidog · Feb 15, 2011

I would suggest using YQL and requesting JSON output. The link you referenced is Yahoo's weather RSS feed.

http://query.yahooapis.com/v1/public/yql?q=select%20item%20from%20weather.forecast%20where%20location%3D%2248907%22&format=json