Hi
@Anamika15
,
Could you please try by changing for each object type to “Newtonsoft.Json.Linq.JToken” and use item.ToString instead of item(“DocumentId”).ToString.
Hope this will work for you.
Thank you!
Changing object type to “Newtonsoft.Json.Linq.JToken” is partially solving the issue. Now I am not getting error but its giving me complete JSON file in message box.
I need few elements only. Document id, invoice id etc. Any idea how to get this?
Add simple condition inside as below.
If item.ToString.contains(“DocumentId”)
Then split it accordingly to get the exact value.
Thanks!