json.bash
jo
json.bash | jo | |
---|---|---|
3 | 16 | |
445 | 4,716 | |
0.2% | 0.3% | |
6.4 | 2.6 | |
3 months ago | 4 months ago | |
Shell | C | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
json.bash
-
Show HN: Jb / json.bash – Command-line tool (and bash library) that creates JSON
If it helps, there's a little example of using the bash API with bash variables/arrays, should give you an idea of how it could be to use: https://github.com/h4l/json.bash/blob/main/examples/notify.s...
This example uses the pattern of setting an out=varname when calling a json function, the encoded JSON goes into $varname variable. This pattern avoids the overhead of forking processes (e.g. subshells) when generating JSON.
Otherwise you can use the more normal approach of jb writing to stdout, and capturing the output stream.
jo
-
Show HN: Jb / json.bash – Command-line tool (and bash library) that creates JSON
Similar to jo, which is written in C [1]
[1] https://github.com/jpmens/jo
-
jq 1.7 Released
In addition to my previous comment about jq-like tools, I want to share a couple other interesting tools, which I use alongside jq are jo [0] and jc [1].
[0]: https://github.com/jpmens/jo
[1]: https://github.com/kellyjonbrazil/jc
-
GNU Parallel, where have you been all my life?
That should recursively list directories, counting only the files within each, and output² jsonl that can be further mangled within the shell². You could just as easily populate an associative array for further work, or $whatever. Unlike bash, zsh has reasonable behaviour around quoting and whitespace too.
¹ https://zsh.sourceforge.io/Doc/Release/User-Contributions.ht...
² https://github.com/jpmens/jo
³ https://github.com/stedolan/jq
- Show HN: Jf – A jo alternative to format JSON objects in the commandline
-
Getting started with MSK Serverless and AWS Lambda using Go
I used a handy json utility called jo (sudo yum install jo)
- Create an array then save as json with jq
- shell command to create JSON: jo -p name=JP object=$(jo fruit=Orange point=$(jo x=10 y=20) number=17)
-
Using Vim As Your Shell Command-Line Scratch
APIs mostly use JSON as their payload. We can easily create them using jo. We can read the command output and put it to your current buffer. For example, we want to create a JSON object with a lower case uuid value for its id property, and a simple name.
-
A list of new(ish) command line tools – Julia Evans
I'm a big fan of jo[1] for making generating JSON from the shell not terrible.
[1] https://github.com/jpmens/jo
-
Looking for a CLI tool that can format a json file.
jo
What are some alternatives?
welcome.sh - A nice welcome script for Bash and Zsh
jello - CLI tool to filter JSON and JSON Lines data with Python syntax. (Similar to jq)
asciinema-rec_script - Record 💭 comments and ❯ commands from from shell scripts in addition to their output.
jc - CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
discord.sh - Write-only command-line Discord webhooks integration written in 100% Bash script
libcurl - A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. libcurl offers a myriad of powerful features