Questions tagged [jq]

Questions about the command line JSON processing tool jq.

6 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
83 views

JSON -> csv creating header line and padding header if found empty field

I have a programme in bash that get JSONline files with several million of these object per line (See source) { "company_number": "09626947", "data": { "address": { "address_line_1": "...
0
votes
0answers
71 views

parse error: Invalid string: control characters from U+0000 through U+001F must be escaped

I have a script execute.sh which receive a JSON with a curl call #!/bin/bash source getoutput.sh server="$1" cmd="$2" res=$(curl -sS http://$server -X PUT -H "Content-Type: application/json" -d "{ \...
0
votes
0answers
37 views

Add bash variable as JSON key and value into object

I have a JSON array of objects like so . [ { "id" : "tmp1387816934708382026", "owner" : "john", "x11-display" : ":5", "x11-authority" : "/run/user/john/dcv/tmp1387816934708382026....
0
votes
1answer
72 views

Get parent nodes by child node selector with jq

I'm trying to parse json with jq { "xxx": { "aliases": { "business_event": { "is_write_index": true } }, "mappings": { "...
0
votes
1answer
44 views

Rename files based on JSON content using jq

I need to make a shell script that uses jq to rename below mp4 file(s). (could have use jasonpipe but didn't know how to install it on mac) File Dowloaded: title1-1000221327.mp4 title1-1000221327....
0
votes
0answers
196 views

How to join 2 json files by one key

jsonfile1 [ [ "i-pfasdqaertcbidlkl", "Some_Task", "t2.small", "running", "4.3.2.1", "Malaysia_db", "2018-04-10T13:56:50.000Z", "db",...