❔ System.Text.Json deserializing and serializing polymorphic classes WITHOUT a discriminator
I have a base class (record) and two derived records:
I need to be able to serialize these in a JSON API response, and I cannot utilize discriminators because I am adhering to the git-lfs API spec. Is my only option to create a custom JsonConverter? I don't remember Newtonsoft.Json having these kinds of issues...
Edit. I can't seem to close posts because @Accord is down. I've resolved this issue by going about it a different way.
1 Reply
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.