My input JSON file is:
{
"name": "abc",
"private": true,
"version": "1.0.0",
"description": "UI",
"dependencies": {
"xyz": "9.11",
"abc": "5.0.0"
}
}
When I use jq .name=xyz
, the output will be printed as:
{
"name": "xyz",
"private": true,
"version": "1.0.0",
"description": "UI",
"dependencies": {
"xyz": "9.11",
"abc": "5.0.0"
}
}
Though my input file as proper indentation, after running the jq
command the indentation is different.
How can I restrict the indentation?
Thanks in advance!