[ code snippet ] JsonPropertyConverter.cs

30 Jul 2020

code snippet JSON

JsonConverter that works with System.Text.Json allows having a string property that will just store the json element string instead of trying to parse the properties into a complex object


Code Snippet



Sample Usage

This code snippet allows you to parse json that looks something like this



into a C# model that looks like this



This is great for if you are loading dynamic json based off another property in the model