You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How could one search for a specific key and replace its value in this collection, given the position/index of the element is not known?
For example replacing goat with a new value goat value new ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all
The topic seemed simple but I still did not find a suitable solution also after extensively checking the documentation and existing discussions.
I have a YAML containing the following "collection"
How could one search for a specific key and replace its value in this collection, given the position/index of the element is not known?
For example replacing
goat
with a new valuegoat value new
?Many thanks, regards
Aldo
Beta Was this translation helpful? Give feedback.
All reactions