Description
I was unable to "de-beautify" arrays after a simple select with jq.
Example Input (less.json):
{"name":"configuration","version":"1.0.0","description":"settings","parameters":{"threshold":[[0.7,0.7],0.7,0.7],"margin":[0,0,0,0],"type":"frame"}}
I want to beautify the json but keep the arrays on a single line without new-lines after each element, as in this example:
jq-win64.exe "." less.json
{
"name": "configuration",
"version": "1.0.0",
"description": "settings",
"parameters": {
"threshold": [
[
0.7,
0.7
],
0.7,
0.7
],
"margin": [
0,
0,
0,
0
],
"type": "frame"
}
}
My intended result will look like:
{
"name": "configuration",
"version": "1.0.0",
"description": "settings",
"parameters": {
"threshold": [[0.7,0.7],0.7,0.7],
"margin": [0,0,0,0],
"type": "frame"
}
}
How can I achieve this?