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

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