How to handle json from fn.fnSsh function #249
-
Hey, maybe this is some kind of question or enhancement for the docs. I want to use some JSON Output that i am getting from an fn.fnSsh Function. Here is my example: I have a field that outputs something like this from ssh script:
And in another field i want to use the corresponding JSON from the first Array Element, since with the fn.fnSsh i cant modify the output. Just like this as an expression:
It outputs
Do anyone see my error or have any ideas about this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Use A local Expression First and use JSON.parse. this will convert it to a JavaScript object that you can then further manipulate if you can give me exactly what do you want to manipulate? I can give you some examples. |
Beta Was this translation helpful? Give feedback.
-
fnSsh returns string output. it doesn't know it is json. |
Beta Was this translation helpful? Give feedback.
-
That works perfect, thanks for your quick help! Maybe its important to mention somewhere that many times you have to use additional field to solve this type of problems. |
Beta Was this translation helpful? Give feedback.
Use A local Expression First and use JSON.parse. this will convert it to a JavaScript object that you can then further manipulate if you can give me exactly what do you want to manipulate? I can give you some examples.