Convert json to Datatable

uiautomation

#1

{

"Name": "Karan",
"Adddress": "Kolkata",
"Job_Description": "Software Developer",
"request": {
	"createdBy": "unknown",
	"comment": "Software",
	"Closure":[  
        {  
           "type":"AB",
           "country":[  
              "India",
              "Pakistan"
           ]
        },
		{  
           "type":"CD",
           "country":[  
              "India",
              "Pakistan"
           ]
        }
     ]
}

}

I want to convert this json to datatable. I am getting error when i am trying to write the deserialized json in text. Error–>
“Accessed JArray values with invalid key value: “Name”. Int32 array index expected.”
Please help me to get the solution


#2

I was able to deserialize the exact same json data you posted. Is there any specific thing that is throwing an error for you?. I was able to retrieve the data as well.

TestJSON.zip (2.1 KB)

Thanks,
Rammohan B.