I have the following JSON and am using the -y option to produce a yaml output.
{
array: [
{item1: 1},
{item2: 2},
]
}
I would like to produce (desired)
{
"array":
- "item1": 1,
- "item2": 2
}
but I am getting
{
"array": [
{
"item1": 1
},
{
"item2": 2
}
],
}
Note the curly brackets in the actual output. Is it possible to use jsonnet to produce the desired yaml output?