Questions tagged [jsonconverter]

111 questions
-1
votes
1 answer

polymorphic Json deserialization in nested scenario

I have some classes that I want to (de-)serialize: public class Top { public Top(Sub content) { Content = content; } public Sub Content { get; init; } } public class Sub { public Sub(Sub? entry) { Entry = entry; Type = SubType.super;…
Kjara
  • 2,504
  • 15
  • 42
-1
votes
1 answer

JsonConvert.DeserializeObject(objects)

DeserializeObject for { "15 Days": "675", "180 Days": "8100", "30 Days": "1350", "60 Days": "2700", "90 Days": "4050" }
-1
votes
2 answers

Angular patchValue not working with JsonConverter

I have a angular form with a select control which receives it's values from an enum on the server.