jq tag

4 questions


2 answers
414 views
0
I want to extract a specific string with the jq command.

I would like to get the id 7721291801 from here with the jq command.{ total_count: 1, entries: [ { type: group, id: 7721291801, name: test-group 1, group_type: managed_group } ], limit: 100, ...

1 years ago

1 answers
96 views
0
How to select mysql from bash (shell) and output it in JSON

I would like to know how to select mysql on bash and output it on JSON.Specifically, echo SELECT* from testtable; | mysql --defaults-extra-file=./my.conf testdbI would like to print the results in JSO...

1 years ago

1 answers
59 views
0
Retrieve values from JSON nested arrays using jq

I have converted the following JSON from jq to CSV.{ items: [ { id: 1, name: masao, images: [001.jpg, 002.jpg ] }, { id: 2, name: video, images: [003.jpg, 004.jpg ] } ]}I create a CSV usin...

1 years ago

2 answers
94 views
0
I want to specify a serial number in the JSON element of the shell script.

Current stateWe are currently working on correcting JSON and adding a new Val element (Key: Value) from the existing JSON.Current Code{ total: [ { name: sasuke, category: animal, URL: https://0000/...

1 years ago

© 2024 OneMinuteCode. All rights reserved.