Extend Utf8JsonReader.CopyString
to also accept JsonTokenType.Number
values
#84375
Labels
area-System.Text.Json
enhancement
Product code improvement that does NOT require public API changes/additions
Milestone
The current implementation of the
Utf8JsonReader.CopyString
methods only accepts JSON string tokens, that isJsonTokenType.PropertyName
andJsonTokenType.String
. When implementing JsonConverters for large numeric types such asBigInteger
(#60780) orInt128
/UInt128
(#73500) extending the method to also handle JSON number tokens would greatly simplify getting allocation-free views of underlying JSON number encodings.The text was updated successfully, but these errors were encountered: