3 ms·
To be fair that is a JSON parse error.
by pwm 6y ago
To be fair that is a JSON parse error.
- jeffbee 6y agoYes, but the inputs to jq are not JSON, they are "a sequence of whitespace-separated JSON values which are passed through the provided filter one at a time" which is the relevant thing if you are going to try to replace jq.
- davesnx 6y agoYep, kind of. The comma operations means that the "filters" are duplicated, so instead of one json state you would pass two if there's one coma; and ofcourse any number of commas are allowed.