Hi all,
I want to eliminate empty array "{[[]]}" in prop.Value and store those array having flight numers "{[["6E563","6E387","6E301","6E317","AI560","6E303","AI126","9W643","6E307","AI542","6E765","AI544","AI839","6E309"]]}" in to the datatable. Please help out
on this issue.
var result = Newtonsoft.Json.JsonConvert.DeserializeObject(Content);
JArray array=JArray.Parse(Content);
foreach (JObject content in array.Children<JObject>())
{
foreach (JProperty prop in content.Properties())
{
if (prop.Name == "flight_numbers" && prop.Value.Count()!=0)
{
if (prop.Value != null)
{
string s = "{" + prop.ToString() + "}";
var someObject = jsonSerialization.DeserializeObject(s);
Go to the complete details ...