65.9K
CodeProject is changing. Read more.
Home

Adding $type to System.Text.Json Serialization like in Newtonsoft for Dynamic Object Properties

starIconstarIconstarIconstarIconstarIcon

5.00/5 (2 votes)

Nov 6, 2020

CPOL

5 min read

viewsIcon

36546

This article describes a technique to serialize models containing dynamic types with System.Text.Json JsonSerializer, that doesn’t support $type.