JsonKnownTypes
JsonKnownTypes copied to clipboard
Simple way to serialize and deserialize polymorphic types for Json.NET
Hi there, I've used your library, and it seems to work in most of the cases, unless there are classes with duplicate names. I've created two test scenarios: Scenario 1:...
- Added `public Func NameDiscriminatorResolver { get; set; } = type => type.Name;` to JsonDiscriminatorSettings to allow custom Name Discriminator Resolver - Added JsonKnownTypesSettingsManager To allow type specific config to...
```csharp using System; using JsonKnownTypes; using Newtonsoft.Json; namespace Test { [JsonConverter(typeof(JsonKnownTypesConverter))] public class BaseClass { public string Name {get;set;} } public class ChildClass:BaseClass { public string Detailed {get;set;} } public...
Add net461 and some frameworks that are supported in Newtonsoft.Json. Only add those frameworks that are compatible with the code as it is.
I get the following error when trying to install through NuGet: Could not install package 'JsonKnownTypes 0.4.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1',...
Hi all, Is there any known issues with the PreserveReferencesHandling option. I'm asking this because I'm getting an exception as following. I couldn't send any code here to reproduce the...
**Describe the bug** When using JsonKnownTypes on existing json content, adding a new derived type and then decorating the base class with the basic [JsonConverter...] attribute results in an exception:...
**Is your feature request related to a problem? Please describe.** Newtonsoft.Json version 12 (https://www.nuget.org/packages/newtonsoft.json/12.0.3) has a high severity security vulnerability. **Describe the solution you'd like** Update Newtonsoft.Json to version 13...