$ jq '.[] | [.company, .phone, .address] | join("|")' sample_nows.json
Pro TIP : Export this result > output.txt and Import to db using bulk import tools like bcp, load data infile
11. Convert the number to string and return | delimited result
12. Process Array return Name (returns as list / array)
$ jq '.[] | [.friends[].name]' sample_nows.json
or (returns line by line)
$ jq '.friends[].name' sample_nows.json
13. Parse multi level values
$ jq '.[] | [.name.first, .name.last]' sample_nows.json
(returns as list / array)
$ jq '.[].name.first, .[].name.last' sample_nows.json
(returns line by line )
14. Query values based on condition, say .index > 2