Utf8JsonReader Struct (System.Text.Json) (2024)

Utf8JsonReader processes the text sequentially with no caching and by default adheres strictly to the JSON RFC.

When Utf8JsonReader encounters invalid JSON, it throws a JsonException with basic error information like line number and byte position on the line.

Since this type is a ref struct, it doesn't directly support async. However, it does provide support for reentrancy to read incomplete data and to continue reading once more data is presented.

To be able to set max depth while reading or to allow skipping comments, create an instance of JsonReaderOptions and pass it to the reader.

CopyString(Span<Byte>)

Copies the current JSON token value from the source, unescaped, as UTF-8 bytes to a buffer.

CopyString(Span<Char>)

Copies the current JSON token value from the source, unescaped, as UTF-16 characters to a buffer.

GetBoolean()

Reads the next JSON token value from the source as a Boolean.

GetByte()

Parses the current JSON token value from the source as a Byte.

GetBytesFromBase64()

Parses the current JSON token value from the source and decodes the Base64 encoded JSON string as a byte array.

GetComment()

Parses the current JSON token value from the source as a comment and transcodes it as a String.

GetDateTime()

Reads the next JSON token value from the source and parses it to a DateTime.

GetDateTimeOffset()

Reads the next JSON token value from the source and parses it to a DateTimeOffset.

GetDecimal()

Reads the next JSON token value from the source and parses it to a Decimal.

GetDouble()

Reads the next JSON token value from the source and parses it to a Double.

GetGuid()

Reads the next JSON token value from the source and parses it to a Guid.

GetInt16()

Parses the current JSON token value from the source as a Int16.

GetInt32()

Reads the next JSON token value from the source and parses it to an Int32.

GetInt64()

Reads the next JSON token value from the source and parses it to an Int64.

GetSByte()

Parses the current JSON token value from the source as an SByte.

GetSingle()

Reads the next JSON token value from the source and parses it to a Single.

GetString()

Reads the next JSON token value from the source unescaped and transcodes it as a string.

GetUInt16()

Parses the current JSON token value from the source as a UInt16.

GetUInt32()

Reads the next JSON token value from the source and parses it to a UInt32.

GetUInt64()

Reads the next JSON token value from the source and parses it to a UInt64.

Read()

Reads the next JSON token from the input source.

Skip()

Skips the children of the current JSON token.

TryGetByte(Byte)

Tries to parse the current JSON token value from the source as a Byte and returns a value that indicates whether the operation succeeded.

TryGetBytesFromBase64(Byte[])

Tries to parse the current JSON token value from the source and decodes the Base64 encoded JSON string as a byte array and returns a value that indicates whether the operation succeeded.

TryGetDateTime(DateTime)

Tries to parse the current JSON token value from the source as a DateTime and returns a value that indicates whether the operation succeeded.

TryGetDateTimeOffset(DateTimeOffset)

Tries to parse the current JSON token value from the source as a DateTimeOffset and returns a value that indicates whether the operation succeeded.

TryGetDecimal(Decimal)

Tries to parse the current JSON token value from the source as a Decimal and returns a value that indicates whether the operation succeeded.

TryGetDouble(Double)

Tries to parse the current JSON token value from the source as a Double and returns a value that indicates whether the operation succeeded.

TryGetGuid(Guid)

Tries to parse the current JSON token value from the source as a Guid and returns a value that indicates whether the operation succeeded.

TryGetInt16(Int16)

Tries to parse the current JSON token value from the source as an Int16 and returns a value that indicates whether the operation succeeded.

TryGetInt32(Int32)

Tries to parse the current JSON token value from the source as an Int32 and returns a value that indicates whether the operation succeeded.

TryGetInt64(Int64)

Tries to parse the current JSON token value from the source as an Int64 and returns a value that indicates whether the operation succeeded.

TryGetSByte(SByte)

Tries to parse the current JSON token value from the source as an SByte and returns a value that indicates whether the operation succeeded.

TryGetSingle(Single)

Tries to parse the current JSON token value from the source as a Single and returns a value that indicates whether the operation succeeded.

TryGetUInt16(UInt16)

Tries to parse the current JSON token value from the source as a UInt16 and returns a value that indicates whether the operation succeeded.

TryGetUInt32(UInt32)

Tries to parse the current JSON token value from the source as a UInt32 and returns a value that indicates whether the operation succeeded.

TryGetUInt64(UInt64)

Tries to parse the current JSON token value from the source as a UInt64 and returns a value that indicates whether the operation succeeded.

TrySkip()

Tries to skip the children of the current JSON token.

ValueTextEquals(ReadOnlySpan<Byte>)

Compares the UTF-8 encoded text in a read-only byte span to the unescaped JSON token value in the source and returns a value that indicates whether they match.

ValueTextEquals(ReadOnlySpan<Char>)

Compares the text in a read-only character span to the unescaped JSON token value in the source and returns a value that indicates whether they match.

ValueTextEquals(String)

Compares the string text to the unescaped JSON token value in the source and returns a value that indicates whether they match.

Utf8JsonReader Struct (System.Text.Json) (2024)
Top Articles
Citizen scientists contribute vital information about 35 seahorse species: their geographic ranges, habitats, and pregnancy seasonality - Project Seahorse
15 Traditional Swedish Christmas Foods (+ Easy Recipes)
Craigslist Livingston Montana
Yogabella Babysitter
Craigslist Campers Greenville Sc
Ymca Sammamish Class Schedule
Western Union Mexico Rate
Hotels Near 500 W Sunshine St Springfield Mo 65807
Free Robux Without Downloading Apps
Southland Goldendoodles
Find The Eagle Hunter High To The East
10 Great Things You Might Know Troy McClure From | Topless Robot
Thotsbook Com
Colts seventh rotation of thin secondary raises concerns on roster evaluation
The Witcher 3 Wild Hunt: Map of important locations M19
This Modern World Daily Kos
24 Hour Walmart Detroit Mi
Craiglist Tulsa Ok
라이키 유출
Bridge.trihealth
How your diet could help combat climate change in 2019 | CNN
Academy Sports Meridian Ms
Gotcha Rva 2022
Silky Jet Water Flosser
Suspiciouswetspot
Meridian Owners Forum
Manuela Qm Only
Roanoke Skipthegames Com
Accuradio Unblocked
Masterbuilt Gravity Fan Not Working
8002905511
Xxn Abbreviation List 2023
Kqelwaob
Possum Exam Fallout 76
Missing 2023 Showtimes Near Grand Theatres - Bismarck
Reli Stocktwits
Workday Latech Edu
Helloid Worthington Login
How To Paint Dinos In Ark
Leena Snoubar Net Worth
Infinite Campus Farmingdale
manhattan cars & trucks - by owner - craigslist
Gregory (Five Nights at Freddy's)
Kenner And Stevens Funeral Home
Walmart 24 Hrs Pharmacy
Aznchikz
Abigail Cordova Murder
Latina Webcam Lesbian
Wild Fork Foods Login
Nfsd Web Portal
Costco Gas Price Fort Lauderdale
Swissport Timecard
Latest Posts
Article information

Author: Rob Wisoky

Last Updated:

Views: 6232

Rating: 4.8 / 5 (68 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Rob Wisoky

Birthday: 1994-09-30

Address: 5789 Michel Vista, West Domenic, OR 80464-9452

Phone: +97313824072371

Job: Education Orchestrator

Hobby: Lockpicking, Crocheting, Baton twirling, Video gaming, Jogging, Whittling, Model building

Introduction: My name is Rob Wisoky, I am a smiling, helpful, encouraging, zealous, energetic, faithful, fantastic person who loves writing and wants to share my knowledge and understanding with you.