Using a JSON file in Visual Basic to Get Weather Information from an API

  • Thread starter Thread starter Austin Althouse
  • Start date Start date
A

Austin Althouse

Guest
Hello,

What would be the best way to get and display the values of a JSON file. The files I am trying to read can be found at:

https://api.weather.gov/zones/forecast/KSZ015/forecast

https://api.weather.gov/stations/KICT/observations/latest

Where the KSZ015 and KICT are they will be replaced with a {TextBox3.Text} so the user can input the information for their location.

I tried to convert them to XML files using the method given by the NWS but they do not offer these two features in XML form only JSON. I can get weather alerts in XML which I have successfully done.

How can I get the information from the JSON feeds and display each piece of information (temperature, text description, dew point, humidity, etc.) and forecasts for a specific day or number of days?

Thank You!

Continue reading...
 
Back
Top