<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />

JsonDictionaryAttribute

Instructs the JsonSerializer how to serialize the collection.
using System; using System.Runtime.CompilerServices; namespace Newtonsoft.Json { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false)] public sealed class JsonDictionaryAttribute : JsonContainerAttribute { public JsonDictionaryAttribute() { } [System.Runtime.CompilerServices.NullableContext(1)] public JsonDictionaryAttribute(string id) : base(id) { } } }