How do I call a Web API in C# and return the result as a Datatable?
How do I call a Web API in C# and return the result as a Datatable?
andrew_lvs
Posts: 1Questions: 1Answers: 0
I need to return a result set from a third party API and then traverse the data. I would like to load the data into a datatable I am also successfully calling within a REST API against a SharePoint list The second part is working. The call to the third party API is working. I just can's seem to traverse the data as a JSON object. Which is why I am looking a datatable. Any ideas would be greatly appreciated. Sample code would be awesome.
This discussion has been closed.
Answers
What is the structure of your JSON object? The documentation and examples contain information on how you might do this.
Allan