# Json exception

**URL:** <https://forum.uipath.com/t/json-exception/659005>\
**Category:** Help\
**Tags:** activities, webapi\
**Created:** [October 24, 2023, 3:32pm UTC](https://forum.uipath.com/t/json-exception/659005 "2023-10-24T15:32:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_Pin](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/diego_pin/32/79891_2.png) [@Diego\_Pin](https://forum.uipath.com/u/Diego_Pin)\
**Post date:** [October 24, 2023, 3:32pm UTC](https://forum.uipath.com/t/json-exception/659005/1 "2023-10-24T15:32:30Z")

</div>

Guys, I need a help, my json give a exception:  
(Deserialize JSON: Deserialized JSON type ‘Newtonsoft.Json.Linq.JArray’ is not compatible with expected type ‘Newtonsoft.Json.Linq.JObject’. Path ‘’, line 41, position 1.)

The Json code:  
@"[  
{  
““Data””: {  
““HasDate””: false,  
““HasSignature””: false,  
““HasStamp””: false,  
““Number””: {  
““conf””: 99,  
““value””: "“000132441"”  
},  
““ValidNumber””: false  
},  
““Page””: 1  
},  
{  
““Data””: {  
““HasDate””: false,  
““HasSignature””: false,  
““HasStamp””: false,  
““Number””: {  
““conf””: 99,  
““value””: "“000132441"”  
},  
““ValidNumber””: false  
},  
““Page””: 2  
},  
{  
““Data””: {  
““HasDate””: false,  
““HasSignature””: false,  
““HasStamp””: false,  
““Number””: {  
““conf””: 99,  
““value””: ““000132443"”  
},  
““ValidNumber””: false  
},  
““Page””: 3  
}  
]”

Somebody can hlep pls?

 ![image](https://global.discourse-cdn.com/uipath/original/4X/3/4/5/3456ed48511c21daeeaa007c0b90abc66f6f17f1.png)

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [October 24, 2023, 3:46pm UTC](https://forum.uipath.com/t/json-exception/659005/2 "2023-10-24T15:46:46Z")

</div>

Deserialize JSON Array Activity would be to use as it is JArray  
 ![grafik](https://global.discourse-cdn.com/uipath/original/4X/b/d/7/bd7adede60dc68f98eebd51dd913cb46c2fd1feb.png)

---

<div class="post-metadata">

**Author:** ![Diego\_Pin](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/diego_pin/32/79891_2.png) [@Diego\_Pin](https://forum.uipath.com/u/Diego_Pin)\
**Post date:** [October 24, 2023, 4:23pm UTC](https://forum.uipath.com/t/json-exception/659005/3 "2023-10-24T16:23:03Z")

</div>

> [@Diego\_Pin](#):
>
> Deserialize JSON: Deserialized JSON type ‘Newtonsoft.Json.Linq.JArray’ is not compatible with expected type ‘Newtonsoft.Json.Linq.JObject’. Path

I put STRING[ARRAY], but now give me this:  
(Deserialize JSON: Unexpected character encountered while parsing value: {. Path ‘’, line 2, position 3.)

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

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [October 24, 2023, 4:26pm UTC](https://forum.uipath.com/t/json-exception/659005/4 "2023-10-24T16:26:31Z")

</div>

We used your JSON and it was working with the above mentioned Activity

Maybe a few copy & paste made the JSON invalid

Check and find out the issues with JSONLint [https://jsonlint.com/](https://jsonlint.com/)

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [October 24, 2023, 4:37pm UTC](https://forum.uipath.com/t/json-exception/659005/5 "2023-10-24T16:37:02Z")

</div>

> [@Diego\_Pin](#):
>
> I put STRING[ARRAY], but now give me this:  
> (Deserialize JSON: Unexpected character encountered while parsing value: {. Path ‘’, line 2, position 3.)

In addition to your feedback

We mentioned not these steps (Changing TypeArgument)

Also we mentioned Deserialize JSON Array Activity  
 ![grafik](https://global.discourse-cdn.com/uipath/original/4X/5/b/0/5b05fba601038031babc054cfc17610e0008a659.png)  
 ![grafik](https://global.discourse-cdn.com/uipath/original/4X/c/1/0/c10f4410cca56a2932962f9ac7aac71bc50ac5ec.png)  
 ![grafik](https://global.discourse-cdn.com/uipath/original/4X/7/c/7/7c72222ff64453e157db20d74a7f5cdf7ae0b3f1.png)

From your screenshot we can see that  
 ![grafik](https://global.discourse-cdn.com/uipath/original/4X/b/b/7/bb731b49c7471e65c27997bf396e36473446f6f7.png)

that you had not switched to the recommended Activity

---

<div class="post-metadata">

**Author:** ![Diego\_Pin](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/diego_pin/32/79891_2.png) [@Diego\_Pin](https://forum.uipath.com/u/Diego_Pin)\
**Post date:** [October 24, 2023, 5:17pm UTC](https://forum.uipath.com/t/json-exception/659005/6 "2023-10-24T17:17:29Z")

</div>

Hmm… I change… but now is show this:

Deserialize JSON Array: Invalid property identifier character: “. Path ‘[0]’, line 3, position 4.
