# JSON to DataTable Error

**URL:** <https://forum.uipath.com/t/json-to-datatable-error/754758>\
**Category:** Activities\
**Tags:** web, webapi, activities\
**Created:** [July 19, 2024, 5:18am UTC](https://forum.uipath.com/t/json-to-datatable-error/754758 "2024-07-19T05:18:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mkankatala](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mkankatala/32/484097_2.png) [@mkankatala](https://forum.uipath.com/u/mkankatala)\
**Post date:** [July 19, 2024, 5:25am UTC](https://forum.uipath.com/t/json-to-datatable-error/754758/2 "2024-07-19T05:25:28Z")

</div>

Hi @ecosy6065

Can you refer the below thread to convert Json to Datatable,

> [@API Json response to datatable](https://forum.uipath.com/t/api-json-response-to-datatable/573083/3):
>
> Deserialize the JSON with: [grafik] output: myJObject | TypeArgument: JObject then we can convert this JObject to a DataTable by: myDataTable = Newtonsoft.Json.Linq.JArray.FromObject(new JObject(){myJObject}).ToObject(Of DataTable)

Hope it helps!!

---

_[View the full topic](https://forum.uipath.com/t/json-to-datatable-error/754758)._
