C#C
C#3y ago
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
Reads the next JSON token value from the source unescaped and transcodes it as a string.
Was this page helpful?