nowfound

Life & fun · July 3, 2024

Jb / json.bash – Command-line tool (and bash library) that creates JSON

jb is a UNIX tool that creates JSON, for shell scripts or interactive use. Its "one thing" is to get shell-native data (environment variables, files, program output) to somewhere else, using JSON encapsulate it robustly. I wrote this because I wanted a robust and ergonomic way to create ad-hoc JSON data from the command line and scripts. I wanted errors to not pass silently, not coerce data types, not put secrets into argv. I wanted to leverage shell features/patterns like process substitution, environment variables, reading/streaming from files and null-terminated data. If you…

Jb / json.bash – Command-line tool (and bash library) that creates JSON launched on July 3, 2024 with 183 votes, #308 of 5,184 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 2 years on.

Visit github.com ↗Alternativestop 6% of July 2024

In plain words

jb is a command-line tool and bash library that converts shell-native data—such as environment variables, files, and program output—into JSON format. Designed for both interactive use and scripts, it prioritizes robustness by treating values as strings by default, requiring explicit type annotations to parse other types, and avoiding silent errors or data coercion. It supports shell patterns like process substitution and null-terminated data, making it useful for developers who need safe, ergonomic JSON creation without exposing secrets through command arguments.

written from the facts on this page · September 2026

From the sources

Command-line tool and bash library that creates JSON - h4l/json.bash

In the maker’s words, at launch

jb is a UNIX tool that creates JSON, for shell scripts or interactive use. Its "one thing" is to get shell-native data (environment variables, files, program output) to somewhere else, using JSON encapsulate it robustly. I wrote this because I wanted a robust and ergonomic way to create ad-hoc JSON data from the…

Does a similar job

all alternatives →
  • a small weekendish project - JSON Blob2013 · jsonblob.com · ▲106
  • Jqview, a simple native GUI for inspecting JSON with jq2020 · github.com · ▲208

    simplest possible native GUI for inspecting JSON objects with jq - fiatjaf/jqview

  • Jless, a command-line JSON viewer2022 · pauljuliusmartinez.github.io · ▲344

    Hey, Hacker News! Today I'm proud to release jless, a command-line JSON viewer. jless provides a JSON viewing experience similar to what you see in a browser's network tab in the developer console, but from the comfort of your terminal, with a whole suite of vim-inspired key bindings to easily manipulate your view of the data and full-text regex search. I'm sure many of you have some piped together some combination of cat, jq and less before; hopefully jless can replace that usage (hence the name). It supports newline delimited JSON too, so it can handle any output from jq. I built jless to…

  • Json parser in 20 lines of bash2015 · github.com · ▲13

    micro json parser. Contribute to izabera/j development by creating an account on GitHub.

  • Command-line JSON processing tool2018 · github.com · ▲32

    Terminal JSON viewer & processor. Contribute to antonmedv/fx development by creating an account on GitHub.

  • OK JSON2021 · okjson.app · ▲113

    Format and view JSON with native Mac app

More life & fun this month

the category →

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, July 2024

the whole month →
  • Sugar detox app

    AI · 2024 · apps.apple.com

  • Mobbin 2.0▲1,657

    Discover real-world design inspiration

    Work · 2024 · mobbin.com

  • folk 3.0▲1,591

    The CRM for companies who care about people

    Dev tools · 2024 · folk.app

  • SuperGPT▲1,206

    Use ChatGPT on Google Sheets

    AI · 2024 · superjoin.ai

  • Many years ago, I made VJ softwares (to mix live visuals in clubs) for unexpected platforms like the Game Boy Advance, the Playstation 2 and the Raspberry Pi. This year, I’m back with a new web-app: Pikimov. Inspired by Photopea (a free Photoshop clone), I created this web-based motion design & video editor as an alternative to After Effects, to fill empty void. It's free, without signup, without cloud uploads (your files stay on your machine), and your projects are not used for AI models training.

    AI · 2024 · pikimov.com

  • Motiff▲1,147

    AI powered professional UI design tool

    AI · 2024 · motiff.com