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

🚀 Building a Copilot‑based Meeting Scheduler (POC) using Microsoft Graph & Power Automate

  A practical, step‑by‑step guide for the Microsoft community 📌 Why this article? Many teams are exploring Copilot Studio to build convers...