this is a json
how to quickly get the red marked value?
- Read text file
- Deserialize json object - outputVariable - VariableType(Newtonsoft.Json.Linq.Jobject)
- outputVariable(“data”)(“ret”)(“word_name”).ToString
Thanks!
Use deserialize JSON and try to use this in the message box @fightblue
jsonObject.Item(“data”).Item(“ret”) which will give you the array you have in the ret key.
then use deserialize json array and then loop through each object inside and get the value as jsonarrayserialized.Item(“word”)
Fine
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(“data”)(“ret”)(3).tostring
this would give you that value
Cheers @fightblue
thanks,it is outputVariable(“data”)(“ret”)(0)(“word”).tostring
thanks
thanks, it is out_json(“data”)(“ret”)(0)(“word”).tostring
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.