How to bind json data to FromBody Dto in .net core rest api
In the .net core rest api, when I call an api that is HttpPost and receives a Dto object in FromBody, and sends extra fields that are not in SourceUrlDto, I fail during binding on the code side.
ASP Core deserialise JSON to derived classes
I’ve got a frontend application which is producing a JSON object (lets call it a RuleGroup). Each RuleGroup contains a list of either subgroups or nodes. Below is a rough example of what this may look like