I'm using ASP.NET Core configured with Newtonsoft's Json.NET to build a text API. I have some objects that are exposed as body for controller actions, and in those objects there are some fields that I want to be "out-only", i.e., that they be included in deserialization but ignored in serialization.
Does Json.NET provides a way to configure that?
I guess I can do that with a custom JsonConverter, but I much prefer to use something out-of-box.