I have a nested json that looks like below:
I am trying to access the value inside the JSON array “OU”, by passing dynamic values to the datatable, such that I get the value as OU1, OU2 or so based on the value I pass. Let me explain with the code snippet below:
I have a JSON object jsonConfig which holds the values of JSON file. I am trying to access the nested JSON as below:
This prints the value as “OU1”. I have another datatable dtRegion which holds the region info.
I am passing this to the as below:
This fails. I am passing an object only but still fails to print with below error: