# Read data from json

**URL:** <https://forum.uipath.com/t/read-data-from-json/482201>\
**Category:** Activities\
**Tags:** web, webapi, activities\
**Created:** [October 18, 2022, 12:58pm UTC](https://forum.uipath.com/t/read-data-from-json/482201 "2022-10-18T12:58:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harbansh\_Singh](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/harbansh_singh/32/306631_2.png) [@Harbansh\_Singh](https://forum.uipath.com/u/Harbansh_Singh)\
**Post date:** [October 18, 2022, 12:58pm UTC](https://forum.uipath.com/t/read-data-from-json/482201/1 "2022-10-18T12:58:24Z")

</div>

Hi,

I want to read data from API.  
Below is the output string  
{  
“Start” : 2,  
“Index” : 3,  
“Result” :[{  
“Id” : 12345,  
“Email” : {  
“Primary” : true,  
“Type” : “R”  
},  
“DisplayName” : “xyz”,  
“Roles” : [  
{  
“I’d”: 12355,  
“DisplayName”:“test”  
},  
“I’d” : 76567,  
“Value”:“app”  
]

}]  
}

It’s consistent JSon object , json array and multi dimension array.

I need to store this as a dictionary and read the data..  
How can I do this

I am able to read json object by iterating the dictionary but how can I read property of json array.

---

<div class="post-metadata">

**Author:** ![muhamed\_fasil](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/muhamed_fasil/32/337594_2.png) [@muhamed\_fasil](https://forum.uipath.com/u/muhamed_fasil)\
**Post date:** [October 18, 2022, 12:59pm UTC](https://forum.uipath.com/t/read-data-from-json/482201/2 "2022-10-18T12:59:56Z")

</div>

> [@Harbansh\_Singh](#):
>
> ow is the output string  
> {

@Harbansh_Singh  
use deserialize json activity and then you can use it like key value pair(dictionary variable)

---

<div class="post-metadata">

**Author:** ![muhamed\_fasil](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/muhamed_fasil/32/337594_2.png) [@muhamed\_fasil](https://forum.uipath.com/u/muhamed_fasil)\
**Post date:** [October 18, 2022, 1:01pm UTC](https://forum.uipath.com/t/read-data-from-json/482201/3 "2022-10-18T13:01:23Z")

</div>

@Harbansh_Singh ,  
please find the below url

[![](https://global.discourse-cdn.com/uipath/original/4X/8/c/f/8cf7b6c22a9ad3e7d44ea493540921e4fddc1253.jpeg "UiPath Tutorial For Beginners - JSON Parsing") ](https://www.youtube.com/watch?v=nKXl5189AsY)

---

<div class="post-metadata">

**Author:** ![Harbansh\_Singh](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/harbansh_singh/32/306631_2.png) [@Harbansh\_Singh](https://forum.uipath.com/u/Harbansh_Singh)\
**Post date:** [October 18, 2022, 1:02pm UTC](https://forum.uipath.com/t/read-data-from-json/482201/4 "2022-10-18T13:02:43Z")

</div>

@muhamed_fasil yes I am able to do that with json object but when it’s comes, when dictionary has json array then it is giving me all the properties of json array how I can extract particular single value from that…

---

<div class="post-metadata">

**Author:** ![Gokul001](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gokul001/32/462734_2.png) [@Gokul001](https://forum.uipath.com/u/Gokul001)\
**Post date:** [October 18, 2022, 1:02pm UTC](https://forum.uipath.com/t/read-data-from-json/482201/5 "2022-10-18T13:02:43Z")

</div>

Hi @Harbansh_Singh

Check out the UiPath official documentation

[https://docs.uipath.com/activities/docs/deserialize-json](https://docs.uipath.com/activities/docs/deserialize-json)

[![](https://global.discourse-cdn.com/uipath/original/4X/0/d/5/0d5dd280b880e152744d17d9bee925383fb74d1f.jpeg "Deserialize JSON in UiPath | UiPath in 5 minutes | Ep:3") ](https://www.youtube.com/watch?v=Tn5X-7kxzhs)

Regards  
Gokul

---

<div class="post-metadata">

**Author:** ![supermanPunch](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/supermanpunch/32/133652_2.png) [@supermanPunch](https://forum.uipath.com/u/supermanPunch)\
**Post date:** [October 18, 2022, 3:14pm UTC](https://forum.uipath.com/t/read-data-from-json/482201/6 "2022-10-18T15:14:21Z")

</div>

> [@Harbansh\_Singh](#):
>
> I am able to read json object by iterating the dictionary but how can I read property of json array.

Hi @Harbansh_Singh ,

Could you also let us know what are the values you would need from the Json and in which format ?

---

<div class="post-metadata">

**Author:** ![Harbansh\_Singh](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/harbansh_singh/32/306631_2.png) [@Harbansh\_Singh](https://forum.uipath.com/u/Harbansh_Singh)\
**Post date:** [November 22, 2022, 7:04am UTC](https://forum.uipath.com/t/read-data-from-json/482201/7 "2022-11-22T07:04:51Z")

</div>

@supermanPunch I want to write the Json data into dictionary so that in one place and easily I can retrieve all the elements
