# How do i get specific value from JSON string

**URL:** <https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267>\
**Category:** Activities\
**Tags:** question, webapi, activities\
**Created:** [July 31, 2023, 3:17am UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267 "2023-07-31T03:17:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goku](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/goku/32/419442_2.png) [@Goku](https://forum.uipath.com/u/Goku)\
**Post date:** [July 31, 2023, 3:17am UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267/1 "2023-07-31T03:17:18Z")

</div>

So am using Api to extract weather details of partiular cities  
and i want to extract particular fields such as temp  
Below is my JSON

{  
“coord”: {  
“lon”: -0.1257,  
“lat”: 51.5085  
},  
“weather”: [  
{  
“id”: 804,  
“main”: “Clouds”,  
“description”: “overcast clouds”,  
“icon”: “04d”  
}  
],  
“base”: “stations”,  
“main”: {  
“temp”: 20.04,  
“feels\_like”: 20.08,  
“temp\_min”: 18.49,  
“temp\_max”: 21.67,  
“pressure”: 1006,  
“humidity”: 76  
},  
“visibility”: 10000,  
“wind”: {  
“speed”: 4.63,  
“deg”: 260  
},  
“clouds”: {  
“all”: 100  
},  
“dt”: 1690544725,  
“sys”: {  
“type”: 2,  
“id”: 2075535,  
“country”: “GB”,  
“sunrise”: 1690517856,  
“sunset”: 1690574170  
},  
“timezone”: 3600,  
“id”: 2643743,  
“name”: “London”,  
“cod”: 200  
}

How do i do it without using any regex of string manipulations

---

<div class="post-metadata">

**Author:** ![Nguyen\_Van\_Luong1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nguyen_van_luong1/32/442389_2.png) [@Nguyen\_Van\_Luong1](https://forum.uipath.com/u/Nguyen_Van_Luong1)\
**Post date:** [July 31, 2023, 3:20am UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267/2 "2023-07-31T03:20:33Z")

</div>

Hi @Goku ,  
Use Deserialize JSON activity. It will give you an out put of type JsonObject. Lets us say you store the JsonObject to a variable jsonObject. Now you can get values from the JsonObject  
See more at

> **[How to deserialize JSON in UiPath?](https://aneejian.com/deserialize-json-uipath/)**
>
> Tutorial on how to properly deserialize JSON with UiPath Web Activities. Explains the concept of JSON Array and JSON Object.

Regards,  
LNV

---

<div class="post-metadata">

**Author:** ![rlgandu](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rlgandu/32/488436_2.png) [@rlgandu](https://forum.uipath.com/u/rlgandu)\
**Post date:** [July 31, 2023, 3:25am UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267/3 "2023-07-31T03:25:23Z")

</div>

@Goku

Add an “HTTP Request” activity to call the API and store the JSON response in a variable . (let’s call it `jsonResponse` ).  
Add a “Deserialize JSON” activity after the “HTTP Request” activity.  
Create a variable to store the deserialized JSON data (let’s call it `weatherData` ) and set it as the “Output” property of the “Deserialize JSON” activity.  
Assign (temperature = weatherData(“main”)(“temp”).ToString())

---

<div class="post-metadata">

**Author:** ![Goku](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/goku/32/419442_2.png) [@Goku](https://forum.uipath.com/u/Goku)\
**Post date:** [July 31, 2023, 3:32am UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267/5 "2023-07-31T03:32:59Z")

</div>

After Deserializing i get the object as below screenshot

 ![image](https://global.discourse-cdn.com/uipath/original/4X/7/9/b/79bc2e034deca03e8a3dd4dad32d9f7a9e3db840.png)

How do i extract specific values from this

---

<div class="post-metadata">

**Author:** ![rlgandu](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rlgandu/32/488436_2.png) [@rlgandu](https://forum.uipath.com/u/rlgandu)\
**Post date:** [July 31, 2023, 3:36am UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267/6 "2023-07-31T03:36:37Z")

</div>

@Goku

[![](https://global.discourse-cdn.com/uipath/original/4X/8/8/3/8832cb18ebc905dc5534bcbdc8912e8e73854f42.jpeg "UiPath Json Deserialize | UiPath Json |UiPath Json Parsing | UiPath Tutorial") ](https://www.youtube.com/watch?v=yj-js_QIB0E)

---

<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:** [July 31, 2023, 4:35am UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267/7 "2023-07-31T04:35:30Z")

</div>

@Goku

1. Deserialize jaon and select type argument as jObject…say output variable is jobj
2. Now use `jobj("main")("temp").ToString` to get the temperature value

Cheers

---

<div class="post-metadata">

**Author:** ![shravan.prajapati](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@shravan.prajapati](https://forum.uipath.com/u/shravan.prajapati)\
**Post date:** [July 31, 2023, 5:09am UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267/8 "2023-07-31T05:09:34Z")

</div>

Please try this approach for your data. Hope it will works.

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

---

<div class="post-metadata">

**Author:** ![Rajasekar\_Ramachandran](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rajasekar_ramachandran/32/395380_2.png) [@Rajasekar\_Ramachandran](https://forum.uipath.com/u/Rajasekar_Ramachandran)\
**Post date:** [July 31, 2023, 5:32am UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267/9 "2023-07-31T05:32:03Z")

</div>

You can use the deserialize JSON activity and it will return the JObject  
orElse  
you can directly parse the string into the JObject in a assign.

Example:  
yourJObjectVariable = JObject.Parse(YourApiStringValue)  
Then,  
yourJObjectVariable(“main”)(“temp”).tostring

---

<div class="post-metadata">

**Author:** ![Shubham\_Dutta](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/shubham_dutta/32/266407_2.png) [@Shubham\_Dutta](https://forum.uipath.com/u/Shubham_Dutta)\
**Post date:** [July 31, 2023, 6:34am UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267/10 "2023-07-31T06:34:26Z")

</div>

Hi @Goku,

try with this expression once after deserializing JSON file  
lets take like the output variable of Deserializa JSON activity as out\_json  
–now in a write line activity mention as  
**out\_json(“main”)(“temp”)(0).tostring**

this would give you the value

Regards,  
SD

---

<div class="post-metadata">

**Author:** ![Aniket\_Dandade](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aniket_dandade/32/366677_2.png) [@Aniket\_Dandade](https://forum.uipath.com/u/Aniket_Dandade)\
**Post date:** [July 17, 2024, 2:37pm UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267/11 "2024-07-17T14:37:47Z")

</div>

Hello please refer below screeshot for your query:  
and if you like my answer please don’t forget to mark it as a solution.

 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/1/4/0144e442ed66390ea03ad45196416d3d7a311003.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/7/c/0/7c05a689cf83137a2ff16358a2cb35aae5ca4d71.png)

 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/2/5/0254b68a6be6aaf68b46e02083289980c511789f.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:** [July 16, 2026, 11:15am UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267/12 "2026-07-16T11:15:13Z")

</div>

Split this topic on July 16, 2026, 11:15am UTC

A post was split to a new topic: [Use String Variable for JSON Path](https://forum.uipath.com/t/use-string-variable-for-json-path/5761582)

---

<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:** [July 16, 2026, 11:37am UTC](https://forum.uipath.com/t/how-do-i-get-specific-value-from-json-string/568267/13 "2026-07-16T11:37:56Z")

</div>

Closed on July 16, 2026, 11:37am UTC


