python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How can I fetch the value of a key-value pair in a JSON using shell script
How can I fetch the value of a key-value pair in a JSON using shell script
I do not know the positions of key-value pairs in the JSON, I will have to search and get the value of the key-value pair.
{
...
Raghunath Dhara
Votes: 0
Answers: 2
Converting a list of objects to an array
Given I have a list of objects:
{
"alpha": {
"bytes": {
"value": 4789440
},
"doc_count": 7723
},
"beta": {
"bytes&quo...
sontags
Votes: 0
Answers: 2
Batch add keys into JSON files in a directory based on condition
I am looking for a way to batch add keys to all JSON file in a directory preferably with command line tools.
Files:
/config$ ls
166bbdd41c0297755ddb645db2b4c865 46a5c83d30483acba49a542a1ade9c33 87b2...

Bohumír Mäsiar
Votes: 0
Answers: 3
jq update substring matched object
Json file:
{
"A": "jack",
"B": [
{
"name": "jack/jil",
"version": "0.1"
},
{
"name": &...

Subhadip Banerjee
Votes: 0
Answers: 1