itchyny
itchyny
"Invalid Numeric Literal" on colon following a single-quoted string (incorrect parser error message)
jq processes the standard input `curl -s 'https://api.github.com/repos/stedolan/jq/commits?per_page=5' | jq '.[0] | {message: .commit.message, name: .commit.committer.name}'`
Simple way of doing this is outputting a shell script from jq. That's how `@sh` is used for. ``` jq -r 'to_entries[] | @sh"echo \(.value|tostring) > \(.key)"' | sh ```
Could you share a sample input file with at least five lines and its expected JSON result? Your use case looks achievable with one jq command but the expectated result...
Something like `.nodes += [{$mac}]` should work.
Related issue: #412.
@kbob Could you submit a PR? Thanks.
Okay, I'm going to include this when improving the tutorial page.
In YAML syntax, there is no special meaning in double quoted string inside a plain (=unquoted) style string. So `b: foo("abc")` has a plain style string `foo("abc")` and that's all....
Reported log does not contain the error message. Please share the entire log.
Released [jq 1.8.1](https://github.com/jqlang/jq/releases/tag/jq-1.8.1).