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