© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
3y ago
•
8 replies
devhl
❔ Utf8JsonReader.GetString exceptions
This document seems to contradict itself
. The returns section says if the token is null then you get null
, but the exceptions say null will cause an exception
. Am I understanding this right and it is wrong documentation
?
https://learn.microsoft.com/en-us/dotnet/api/system.text.json.utf8jsonreader.getstring?view=net-7.0#returns
Utf8JsonReader.GetString Method (System.Text.Json)
Reads the next JSON token value from the source unescaped and transcodes it as a string
.
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Exceptions.
C
C# / help
17mo ago
✅ Exceptions
C
C# / help
2y ago
✅ Extracting an object from a Utf8JsonReader
C
C# / help
4y ago
✅ MediatR exceptions
C
C# / help
3y ago