Hi, I am using Newtonsoft.json. this should work but keep getting and error.
Json Result
{"AllResults":"[{\"Company\":\"testcompany\"}]"}
or
{"AllResults":"[{"Company":"testcompany"}]"}
Web method c#
[WebMethod]
public static string AddClient(AllRequests[] AllResults)
{
string myself;
foreach (var c in AllResults)
{
myself = c.Company;
}
public class AllRequests
{
public string Company { get; set; }
}
dom Error message return.
{"Message":"Cannot convert object of type \u0027System.String\u0027 to type \u0027AllRequests[]\u0027","StackTrace":" at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTy ...
Go to the complete details ...