How to remove empty string properties from json using System.Text.Json.JsonSerializer?
I want to omit empty string properties from my Json. Here's what I did. Create a Custom Converter that converts empty strings to null: public class EmptyStringToNullConverter : JsonConverter<string> { public override string? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)…