I have a Web API project with C# and I am trying to configure the Json Serializer (Newtonsoft JSON) to return always a wrapped response, because when my api controller just returns a Boolean or a integer (or other primitive types), I just get the object but I want something like:
{ d : true }
a wrapped result but without modifying the controller, i saw that there are a lot of configuration stuff on:
config.Formatters.JsonFormatter.SerializerSettings
but i don´t found the one that provides this behavior.
Thanks!