Monday, August 5, 2019

Newtonsoft.Json.Linq.JArray to string array C#

While getting this error "Cannot implicitly convert type 'Newtonsoft.Json.Linq.JArray' to 'string[]'"

MenuJson=

SharePoint Online List Item 

 dynamic jsonString = JsonConvert.DeserializeObject(mylanProfanityItem.FieldValues["MenuJson"].ToString());
return jsonString.Words.ToObject<string[]>();



No comments:

Post a Comment

Why Power Automate Premium with AI Builder is a Game-Changer for Single Users

 I ntroduction Manual data processing is not only time-consuming but also prone to errors, impacting efficiency and decision-making. Organi...