pankajs3
(pankaj)
1
I have requirement that from my java code returning string type JSON format to UIPATH variable then how can i extract value while providing key.
return this type of string from Java to UIpath variable
{“address” : “ABCD”, “city” : “AAAA”, “state” : “AD”, “pin” : “12345” }
Using uipath code how can i get value while providing key.
Rahul24293
(Rahul Ramachandran)
2
hi,
you can convert the String again to JSON using jsonConverter provided by UiPath.WebAPI.Activities. And you can achieve what you are expecting.
pankajs3
(pankaj)
3
thanks @Rahul24293
i am new in uipath can you provide me an sample code for that with each steps.
Hi @pankajs3,
I have attached a sample json file and the xaml code. Please have look into it to get a better idea.
I have used the JSON Present in Below URL.
https://www.json.org/example.html
Regards,
ShivaKarthik_Test.xaml (5.2 KB)
1 Like
pankajs3
(pankaj)
5
Thanks @Shiva_Karthik
It’s working
Rahul24293
(Rahul Ramachandran)
6
Hey I ma sorry i didn’t saw your message hope your issue has been resolved by Shiva
pankajs3
(pankaj)
7
thanks @Rahul24293 for your reply.
yes my issue has been resolved by Shiva