ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.Web Service Error: You must implement a default accessor on Newtonsoft.Json.Linq.JObject because it inherits from ICollection<p>Hi <a class="username" rel="Amit">Amit,</a></p> <p>Instead of passing&nbsp;JObject as parameter, pass a object type as parameter and then convert it back to&nbsp;JObject to do your rest task.</p> <pre class="brush: csharp">[WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public void StartActivity(object objData) { if (objData.GetType() == typeof(JObject)) { JObject obj = (JObject)objData; // Do your Task. } }</pre> <p>&nbsp;</p>, 04 Jan 2019 02:08:39 GMT