Skip to content

Document known issues and semantic differences between the various JSON-serialization programming models #26040

@layomia

Description

@layomia

Help us make content visible

Describe the new article

With the new JSON source generator, we now have a few programming models for JSON (de)serialization:

  • (De)serialization based on runtime reflection
  • (De)serialization based on compile-time type metadata gathering (metadata source gen mode)
  • Optimized serialization using Utf8JsonWriter directly

We should describe any feature and semantic differences between them, e.g. source-gen lack of support for init-only property deserialization (dotnet/runtime#58770), lack of support for private members.

We should also describe feature differences in fast-path mode vs metadata serialization mode - dotnet/runtime#51945 (comment).


cc @eiriktsarpalis, @steveharter, @tdykstra , @eerhardt, @ericstj, @jeffhandley, @jkotas, @stephentoub

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions