Questions tagged [json]

JSON stands for JavaScript Object Notation. Use this tag for questions about the JSON format itself, and for questions on how to convert, manipulate and distribute JSON data.

JSON is an open standard format for data storage and data transmission using name-value pairs and arrays. JSON is based on JavaScript, and the format is both machine and human readable.

62 questions
3
votes
1 answer

jq how to replace a clear text to a text variable

When I use commmand: jq -r '.balances[] | select(.asset=="BTC").free' wallet.json result: "4723846.89208129" When I use command: coin2=BTC jq -r '.balances[] | select(.asset=="$coin2").free' wallet.json result: nothing How to fix this error?…
NamPT
  • 41
2
votes
1 answer

Fastest way to create a JSON file containg all the file names in a directory

I have a directory with a huge number of large files, several hundred gigabytes. I want a JSON file containing the filenames of all said files. Some of these files are in folders. I would appreciate some help in figuring out the fastest way to do…
0
votes
1 answer

intermidiate user, I have to alter a json file to incorporate new values help please?

This is the code I have to alter, I have copied the file into terminal and now need to put my own ID etc into the code. I used Cat do see this code but not sure how to edit it. Any help appreiated as I am using this for a demonstration of how sleep…
0
votes
1 answer

Replacing JSON text with JQ

I have a few JSON files, the structure varies slightly (can have multiple "Columns") but they look like…