Get value from json

studio

#1

Hi ,i’m Chen


I want to get the array,but failed,i tryied like this:
first i read into the json.file,and the output of Deserialize json activity is deserializedJson,then i start to retrive data:
deserializedJson(“name”).Value(of string) --success
deserializedJson(“memberList”).Value(of string) --failed

can anyone help me.
Thank you.


#2

Hi @chen

You can follow this link for the solution to retrieve value from json.
https://forum.uipath.com/t/json?source_topic_id=20755

Thanks
Girish


#3

Since memberlist is an array, you should do somethinf like this

deserializedJson("packaging")("memberList")(0).ToString -- 1st element in array

#4

Thank you a lot.
i failed in trying deserializedJson(“packaging”)(“memberList”)[0].ToString before,but**()** works


#6

i’m so sorry,when i clicked the link,the message "Oops! That page doesn’t exist or is private."poped up.Where can i know more examples about json.
Thaks.
Chen