neuecc / Utf8Json

Definitely Fastest and Zero Allocation JSON Serializer for C#(NET, .NET Core, Unity, Xamarin).
MIT License
2.36k stars 267 forks source link

AspNetCoreMvcFormatter.JsonOutputFormatter - text/plain support #115

Closed spixy closed 5 years ago

spixy commented 6 years ago

When sending pure string in ASP.NET: public IActionResult Get() { return Ok("bla bla bla"); } set ContentType to text/plain instead of application/json, so it behaves same as default Asp.Net formatter.