I want to update my existing user.yaml
file without erasing other objects or properties.
I have been googling for 2 days for a solution, but with no luck.
Actual Output:
name: Test User
age: 30
address:
line1: My Address Line 1
line2: Address line 2
city: Washington D.C.
zip: 20000
roles:
- User
- Editor
Expected Output
name: Test User
age: 30
address:
line1: Your address line 1
line2: Your Address line 2
city: Bangalore
zip: 560010
roles:
- User
- Editor
The above is my yaml file. I want to fetch this yaml file and update the address of the object and write the same information to the new yaml file / existing yaml file. This has to be done without harming other objects (i.e other objects key and values should be retained).