Since there is no JavaScriptSerializer, what native implementation can be used to handle this?
JavaScriptSerializer
I noticed JsonResult and I can format data t
JsonResult
.net core
using System.Text.Json;
var jsonStr = JsonSerializer.Serialize(MyObject)
var weatherForecast = JsonSerializer.Deserialize(jsonStr);
For more information about excluding properties and nulls check out This Microsoft side