.net core convert object to json code example Example: c# convert object to json var jsonString = JsonConvert.SerializeObject(ObjectModel);