Im use Ansible filter json_query
data:
[
"just_dir",
{
"path": "extend_dir",
"order": "nginx"
}
]
I want to get:
[
{
"path": "just_dir",
},
{
"path": "extend_dir",
"order": "nginx"
}
]
merage([?type(@) == `string`].{path: @}, [?type(@) == `object`])
does not work.