You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whereas JsonReaderOptions has MaxDepth property, JsonWriterOptions does not, instead taking a constant. While this constant is quite large (1000, compared to the default 64 on reading), there is no easy way to work with larger depths.
Even worse, JsonSerializerOptions has a MaxDepth property, but is not respected on Serialize, as there is no way to pass it on to the JsonWriter.
Proposed API
Add a JsonWriterOptions.MaxDepth property; set that property when called from JsonSerializer.
Activity
[-]MaxDepth to JsonWriterOptions[/-][+]Add MaxDepth to JsonWriterOptions[/+]eiriktsarpalis commentedon Oct 29, 2021
I've updated the API proposal and marked it ready for review.
terrajobst commentedon Nov 2, 2021
Video