I have some large YAML files that were originally JSON, so the they are in YAML flow style. E.g.
{
"foo":
{
# Some comment
"bar": "baz", # Another comment
"qux" : [
1,
2,
3
]
},
# ...
}
I would like to convert them to YaML block style, preserving comments and (if possible) the object key ordering. E.g.
foo:
# Some comment
bar: baz # Another comment
qux:
- 1
- 2
- 3
# ...
Is this doable?