# Convert JsonArray into A JsonObject

**URL:** <https://forum.uipath.com/t/convert-jsonarray-into-a-jsonobject/564049>\
**Category:** Activities\
**Tags:** linq, vb, question, document-understanding, webapi, activities\
**Created:** [July 17, 2023, 6:56pm UTC](https://forum.uipath.com/t/convert-jsonarray-into-a-jsonobject/564049 "2023-07-17T18:56:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharon.palawandram](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sharon.palawandram/32/257521_2.png) [@sharon.palawandram](https://forum.uipath.com/u/sharon.palawandram)\
**Post date:** [July 17, 2023, 6:56pm UTC](https://forum.uipath.com/t/convert-jsonarray-into-a-jsonobject/564049/1 "2023-07-17T18:56:47Z")

</div>

Hi Everyone,

I’m trying to assign a Json Array of Value “TableMatch” to OutExtractionResults.ResultsDocument.Tables(1)

Hence I’ve coded

OutExtractionResults.ResultsDocument.Tables(1) = Newtonsoft.Json.JsonConvert.DeserializeObject(Of ResultsTable())(TableMatch)

But since TableMatch is a json array I cant pass this argument.

I tried deserializing TableMatch from JArray to JObject and added new variable “TableObject”

How can I assign OutExtractionResults.ResultsDocument.Tables(1) = to “TableObject”?

---

<div class="post-metadata">

**Author:** ![sharon.palawandram](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sharon.palawandram/32/257521_2.png) [@sharon.palawandram](https://forum.uipath.com/u/sharon.palawandram)\
**Post date:** [July 17, 2023, 6:57pm UTC](https://forum.uipath.com/t/convert-jsonarray-into-a-jsonobject/564049/2 "2023-07-17T18:57:22Z")

</div>

@Yoichi Please do help if you know an approach, thank you!

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [July 18, 2023, 3:37am UTC](https://forum.uipath.com/t/convert-jsonarray-into-a-jsonobject/564049/3 "2023-07-18T03:37:15Z")

</div>

HI,

As type of OutExtractionResults.ResultsDocument.Tables(1) is ResultsTable , we need to create ResultsTable instance, first.

There are 4 types of ResultType contractor. Please use either of them which fits your requreiment. (It may be necessary to crate ResultsTableValue instance, too)

 ![image](https://global.discourse-cdn.com/uipath/original/4X/c/a/e/cae4dfcd03dd51d414e52db359fca1cce62868d3.png)

BTW, why do you need to write your data to ExtractionResults? In general, it’s returned from DataExtractionScope and/or ValidationStation etc.

Regards,

Regards,
