Under what circumstances will Utf8JsonReader.HasValueSequence be true?
TheBuzzSaw
1
Reputation point
I have begun working with raw value spans and sequences inside my JSON converters. I noticed that Utf8JsonReader
provides a property to check to see whether the value is a sequence: HasValueSequence
. When will this be set to true? I noticed that JsonDocument
accepts a ReadOnlySequence<byte>
, but I am mostly interested in the context of ASP.NET Core. I tried sending a 10MB JSON value to my endpoint, and it still was not a sequence.
Sign in to answer