json.bash (textproc/json.bash) Updated: 3 months, 3 weeks ago Add to my watchlist

Command-line tool and bash library that creates JSON

json.bash's one thing is to get shell-native data (environment variables, files, program output) to somewhere else, using JSON encapsulate it robustly. Creating JSON from the command line or a shell script can be useful when: - you need some ad-hoc JSON to interact with a JSON-consuming application, - you need to bundle up some data to share or move elsewhere. JSON can a good alternative to base64-encoding or a file archive. It does no transformation or filtering itself, instead it pulls data from things you already know how to use, like files, command-line arguments, environment variables, shell pipelines and shell scripts. It glues together data from these sources, giving it enough structure to make the data easy to consume reliably in downstream programs. It's something like a reverse tee — it pulls together data sources, using JSON to represent the aggregation. It's not an alternative to to data-processing tools like jq, rather it helps assemble JSON to send into JSON-consuming tools like jq.

Version: 0.3.0 License: MIT GitHub
Reset

2 build(s) found
Builder Build Number Start Time Elapsed Time Watcher Build Status
10.6.x86_64 218011 2024-10-01 6:34:32 0:00:28 63628 build successful
12.arm64 133002 2024-07-20 19:34:42 0:00:09 37883 build successful