Delete JSON data from file via the Command Line
Use jq to delete certain fields from json data and save a new file without the excess data.
1 |
cat original_file.json | jq 'del(.[].fieldname.to_delete, .[].second_field.to_delete)' > new_json_with_fields_removed.json |