© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
173 replies
REAL STUNNA

❔ Null warning from accessing weather results from an API call

I'm creating a weather app that allows you to type in the name of a city and then get it's information from which you can use a key to get the weather for it. I've gotten the first part down, but I'm having trouble with the second part in that I try to get the JSON results from a different api link where I need the city key. I keep getting a null warning from my code when I try to get and deserialize the json, but I don't see anything in the JSON itself that has a null value. any suggestions?

pastebin of code:
https://paste.mod.gg/miyqeovcslff/0

pic of json:
image.png
BlazeBin - miyqeovcslff
A tool for sharing your source code with the world!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

❔ Accessing json results for a weather api console app
C#CC# / help
3y ago
Accessing data for multiple days from weather api
C#CC# / help
11mo ago
❔ null warning while indexing (rather than accessing) null-agnostic type?
C#CC# / help
3y ago
❔ Weather API
C#CC# / help
4y ago