JsonElement with Undefined kind #42249
Labels
area-System.Text.Json
question
Answer questions and provide assistance, not an issue with source code or documentation.
Milestone
Here it is said that JsonElement.WriteTo throws the InvalidOperationException when the ValueKind is Undefined.
My question is why it does that? How is Undefined value not valid for the serialization/deserialization?
This behaviour doesn't allow to use Undefined together with System.Text.Json even though it is declared there as a valid value.
The text was updated successfully, but these errors were encountered: