# Deserialize JSON/Deserialize JSON Array

**URL:** <https://forum.uipath.com/t/deserialize-json-deserialize-json-array/5696460>\
**Category:** Activities\
**Tags:** jsonarray, json-obj, json, datatable, question, gsuite, webapi, activities\
**Created:** [December 10, 2025, 4:44pm UTC](https://forum.uipath.com/t/deserialize-json-deserialize-json-array/5696460 "2025-12-10T16:44:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![conai\_smith](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/conai_smith/32/537455_2.png) [@conai\_smith](https://forum.uipath.com/u/conai_smith)\
**Post date:** [December 10, 2025, 4:44pm UTC](https://forum.uipath.com/t/deserialize-json-deserialize-json-array/5696460/1 "2025-12-10T16:44:40Z")

</div>

Error: Deserialize JSON: Deserialized JSON type ‘Newtonsoft.Json.Linq.JArray’ is not compatible with expected type ‘Newtonsoft.Json.Linq.JObject’. Path ‘’, line 1, position 713.

It keeps showing this error despite using either Deserialize JSON/Deserialize JSON Array and the output as Newtonsoft.Json.Linq.JObject. How can I fix this?

Ultimately, I’m trying to take information extracted from a screenplay activity on a website and upload it into a data table, then written into a google sheet.

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [December 10, 2025, 4:47pm UTC](https://forum.uipath.com/t/deserialize-json-deserialize-json-array/5696460/2 "2025-12-10T16:47:23Z")

</div>

@conai_smith

Welcome to the community

first check the string that you are getting..is a valid json or jarray

print the extracted string to check

cheers

---

<div class="post-metadata">

**Author:** ![MohammedShabbir](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mohammedshabbir/32/558335_2.png) [@MohammedShabbir](https://forum.uipath.com/u/MohammedShabbir)\
**Post date:** [December 10, 2025, 4:49pm UTC](https://forum.uipath.com/t/deserialize-json-deserialize-json-array/5696460/3 "2025-12-10T16:49:48Z")

</div>

Can you share screenshot of error and also check in immediate window for the JSON , how you are getting it.

---

<div class="post-metadata">

**Author:** ![nishi\_jain](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@nishi\_jain](https://forum.uipath.com/u/nishi_jain)\
**Post date:** [December 10, 2025, 4:51pm UTC](https://forum.uipath.com/t/deserialize-json-deserialize-json-array/5696460/4 "2025-12-10T16:51:18Z")

</div>

Hi @conai_smith

This error means your API response is actually a JSON Array ([…]), but your Deserialize activity is expecting a JSON Object ({…}).  
So check the first character and try to print in logs and see what value comes

Cheers

---

<div class="post-metadata">

**Author:** ![conai\_smith](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/conai_smith/32/537455_2.png) [@conai\_smith](https://forum.uipath.com/u/conai_smith)\
**Post date:** [December 10, 2025, 5:25pm UTC](https://forum.uipath.com/t/deserialize-json-deserialize-json-array/5696460/5 "2025-12-10T17:25:52Z")

</div>

Hello,

Thanks!

**The log message (Output result from the screenplay) is as follows:**  
{  
“message”: “[{"title": "VIVAGO Bamboo Toothbrushes 10 Pack - BPA Free Soft Bristl…", "rating": "4.5 out of 5 stars", "price": "$9.98"}, {"title": "VIVAGO Bamboo Toothbrushes Medium Bristles 10 Pack - BP…", "rating": "4.5 out of 5 stars", "price": "$9.98"}, {"title": "VIVAGO Kids Bamboo Toothbrushes 6 Pack - BPA Fr…", "rating": "4.6 out of 5 stars", "price": "$9.98"}, {"title": "VIVAGO Bamboo Toothbrushes 10 Pack - BPA Free Soft Bristles Toothbrushes, Eco-Friendly, Natural Wooden Toothbrush", "rating": "4.5 out of 5 stars", "price": "$9.98"}, {"title": "Biodegradable Eco-Friendly Natural Bamboo Charcoal Toothbrushes, FSC Certified and PETA Approved - 12 Count", "rating": "4.5 out of 5 stars", "price": "$9.49"}]”,  
“level”: “Information”,  
“logType”: “User”,  
“timeStamp”: “09:16:21”,  
“fileName”: “Main”,  
“jobId”: “5d0c1800-8632-43bf-ac57-6094028340e5”,  
“robotName”: “cxsmith7@gmail.com-attended”,  
“machineId”: 4785045,  
“userKey”: “7e8b1999-0519-46b6-8a06-c57ee612b575”,  
“processVersion”: “1.0.0”,  
“organizationUnitId”: 6437520,  
“businessOperationId”: “1b17599a86134a2eb55a365b39529391-0895a82042e6414a9388cd0678dcd453”  
}
