Taking this yaml node for example:
- flow:
- do:
? command:
- command1: command
- command2: command
- command3: command
name: nameblock
descr: descrblock
: block_1
For the value "block_1", the key is a map node. How can I use yaml-cpp to delete the most inner value "block_1", so that the whole node becomes:
- flow:
- do:
command:
- command1: command
- command2: command
- command3: command
name: nameblock
descr: descrblock
Any suggestion? Appreciated!