Different groups in Json object can be retrieved as below:
For each item in jsonObj.SelectToken(“results”)
and then for nested groups, use inner for each loop like For each item in jsonObj.SelectToken(“group”) or
For each item in jsonObj.SelectToken(“data”)
wherever you want to retrive values from.
Again, you can’t deserialize something multiple levels deep into a datatable. Datatables are two dimensional - columns and rows.
As you’re looping through the main objects in the array, you’ll have to then deserialize the child objects to get to their properties. Within all this, you use Add Data Row to add what you want to the datatable.
Thank you to all so far. I feel im getting close. Im having a hard time understanding the naming convention of the assigns in the for each. in the below UI path file you can see my data table. its a simple two column table. Here is what i have so far. If you run it, it will pull in the actual JSON that im using.
can you please give some guidance on the naming convention to call children. im not understanding it.