Json file with bash
Solution 1:
Given "input.json"
{
"spec": {
"finalizers": [
"kubernetes"
]
},
"other": 42
}
Then
jq '.spec.finalizers = []' input.json
outputs
{
"spec": {
"finalizers": []
},
"other": 42
}