2

Upgraded my project from .NET 6 to .NET 7.

Looks like some kid who writes shit in JavaScript and pats themselves on the back has had some input on System.Text.Json

JsonDerivedTypeAttribute

Comments
  • 0
    That sounds like newtonsoft.json, not .net to me.
  • 0
    @CoreFusionX It's System.Text.Json and not Json.NET

    https://learn.microsoft.com/en-us/...
  • 0
    isn't the newtonsoft guy building system.text.json now?
  • 0
    @iceb I thought he was 6 feet under at Westminster Abbey, London
  • 0
    @ostream

    We have weekly meetings with Microsoft Azure Fast-track team, and still this shit happens. The Microsoft guys usually end up going back to their developers and getting a working sample for us.
  • 0
    @ostream

    Yeah, possible if you can produce your own electricity, don't use communications infrastructure and instead use IPoAC or smoke signals, grow your own food, ... the list goes on. Unfortunately we are as dependent on corporations as fish on water...
  • 0
    @uNrEaL-jAsE What's wrong is, if you want polymorphism to work the way one expects it to work, you have to add an attribute to the "base" class. Not "derived", but base. Why is that exactly?
  • 0
    @FuckJava

    AFAIK, you could describe the discriminator field as an attribute in either the base class, or the serializer itself.

    Again, assuming this works like newtonsoft.json, which is what this implementation seems to be based on.
Add Comment