I trying to convert a Table to JSON using Newtonsoft The main problem I have is that the values comes in different data types, so the INT does not return as a string.
Is there a simple way to do it? or do I have to look at the examples where you create custom converter?
dynamic data = table.CreateDynamicInstance();
var jsonBody = Newtonsoft.Json.JsonConvert.SerializeObject(data);
_settings.Request.AddParameter("application/json", jsonBody, ParameterType.RequestBody);
jsonBody returns...
{"phone":555555,"email":"john.doe@svea.com"}
but should return...
{"phone":"555555","email":"john.doe@svea.com"}
Thanks in advance