Issues with lists #1013
Unanswered
freyntjens
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys
Currently having an issue with the usage of a list within shuffle.
List format
{
"entry":[
{
"@Attribute":"hostName",
"@name":"Host Name",
"#text":"xxx.yyy.pt"
},
{
"@Attribute":"hostIpAddr",
"@name":"Host IP",
"#text":"xxx.xxx.xxx.xxx"
}
]
}
The problem is, if I try to use for example the @name variable $change_me.entry.#.@name I'm getting the following result:
Status
SUCCESS
Result
"${[{"@Attribute": "hostName", "@name": "Host Name", "#text": "xxx.yyy.pt"}, {"@Attribute": "hostIpAddr", "@name": "Host IP", "#text": "xxx.xxx.xxx.xxx"}]}$@name"
The expected result would be a list with Host Name and Host IP
if I try to use for example the #text variable $change_me.entry.#.#text I'm getting an error:
{"success":false,"reason":"General exception in the app. See shuffle action logs for more details.","details":"invalid literal for int() with base 10: 'text'"}
I think that this is due to the #text and might solve this replacing "#text" with "text"
This list is a part of json data as per the parsing of an xml which triggers a webhook.
Once again, any help would be highly appreciated.
Thanks,
Fred
Beta Was this translation helpful? Give feedback.
All reactions