-
Hi, I want to use jslt to transform json , but happen an unsolvable problem.
How can I access field user_id out of the scope related array field friends ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The thing here is that if we allow accessing the parent it becomes very difficult to reuse nodes from the input in the output, which means we have to do costly copying. There is a simple workaround: you can capture the user id in a variable before you start the loop:
|
Beta Was this translation helpful? Give feedback.
The thing here is that if we allow accessing the parent it becomes very difficult to reuse nodes from the input in the output, which means we have to do costly copying. There is a simple workaround: you can capture the user id in a variable before you start the loop: