# Json Extract one specific element

**URL:** <https://forum.uipath.com/t/json-extract-one-specific-element/10845>\
**Category:** Help\
**Tags:** webapi, activities\
**Created:** [Août 31, 2017, 12:54 UTC](https://forum.uipath.com/t/json-extract-one-specific-element/10845 "2017-08-31T12:54:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rguich](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rguich](https://forum.uipath.com/u/rguich)\
**Post date:** [Août 31, 2017, 12:54 UTC](https://forum.uipath.com/t/json-extract-one-specific-element/10845/1 "2017-08-31T12:54:49Z")

</div>

Hi,  
When using a JSON deserialized string, I’d like to access directly one specific element value.  
For instance, if JSON is the following:  
{  
“product”: “Live JSON generator”,  
“id”: 31,  
“releaseDate”: “2014-06-25T00:00:00.000Z”,  
“demo”: true  
}

I know we could use the ForEach Loop as explain in the HowTo… but how to access directly one item when we know the structure ?  
I tried with SelectToken(“id”) but nothing is working so far…

---

<div class="post-metadata">

**Author:** ![aksh1yadav](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aksh1yadav/32/135359_2.png) [@aksh1yadav](https://forum.uipath.com/u/aksh1yadav)\
**Post date:** [Août 31, 2017, 12:58 UTC](https://forum.uipath.com/t/json-extract-one-specific-element/10845/2 "2017-08-31T12:58:06Z")

</div>

Hey @rguich

> [@rguich](#):
>
> Hi,
> 
> When using a JSON deserialized string, I’d like to access directly one specific element value.
> 
> For instance, if JSON is the following:
> 
> {
> 
> “product”: “Live JSON generator”,
> 
> “id”: 31,
> 
> “releaseDate”: “2014-06-25T00:00:00.000Z”,
> 
> “demo”: true
> 
> }

on your parse json object fire **parsed\_json\_data.GetValue(“id”).ToString**.

> [@Web automation](https://forum.uipath.com/t/web-automation/10507/2):
>
> Hey @Olaoluwa Here are two sample i am attaching for your reference. One sample deal with simple json data. Second sample deal with json array data. [Sample1.xaml](https://global.discourse-cdn.com/uipath/original/2X/8/8d2168d858ef0e705b6216995395e33b15de628c.xaml) (6.6 KB) [Sample2.xaml](https://global.discourse-cdn.com/uipath/original/2X/2/2359695b1668e089335df6898adb2017800dea6d.xaml) (7.5 KB) Let me know in case of any issue. Regards…!! AKsh

in above thread reference you will find in sample attachment a way to get specific element. Check it out.

Regards…!!  
Aksh

---

<div class="post-metadata">

**Author:** ![mahesh.gundekar](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@mahesh.gundekar](https://forum.uipath.com/u/mahesh.gundekar)\
**Post date:** [Mars 12, 2018, 7:51 UTC](https://forum.uipath.com/t/json-extract-one-specific-element/10845/3 "2018-03-12T07:51:23Z")

</div>

Hi @aksh1yadav,  
It works for me to extract specific element from json object.

Thanks  
Mahesh-G

---

<div class="post-metadata">

**Author:** ![karthik\_bethi](https://avatars.discourse-cdn.com/v4/letter/k/58956e/32.png) [@karthik\_bethi](https://forum.uipath.com/u/karthik_bethi)\
**Post date:** [Octobre 10, 2018, 10:21 UTC](https://forum.uipath.com/t/json-extract-one-specific-element/10845/4 "2018-10-10T10:21:34Z")

</div>

Hi  
Pls follow below tutorial

[![](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)
