I have the following JSON data in a file:
{
"packages": {
"cc": {
"name": "cc",
"version": "3.1",
"release": "0.4",
"arch": "x86"
},
"code": {
"name": "code",
"version": "3.0",
"release": "2.0.2",
"arch": "x86"
}
}
}
I want to remove the whole code object from the file. How can I do that using a command-line tool?
jqor similar tools.jq. i can use it. Thank you :)