Skip to content

Releases: brunerd/ljt

v1.0.10 - little JSON tool

03 Jul 03:28
dd8c841
Compare
Choose a tag to compare

Little JSON Tool (ljt) can retrieve and format data from a JSON document. Allows JSON Pointer and simple JSONPath queries (no filters, wildcards, etc). For more advanced JSON manipulation see my JSON Power tool.

This package installs both the commented ljt and the minified version ljt.min (to use in your shell scripts), into /usr/local/ljt and creates a symlink to ljt in /usr/local/bin.

macOS 10.11+ is required

Installation Notes

The package is not signed or notarized, simply right-click in Finder and choose Open to bypass Gatekeeper and install. You can also remove the quarantine by opening Terminal and running this command: xattr -rc <drag in file from Finder>.

Changelog

v1.0.10 - minor syntax updates
v1.0.9 - fixed handling of keypaths with multiple escaped periods
v1.0.8 - better jq-style query forgiveness: a single . returns entire JSON document and leading .[ is treated as $[
v1.0.7 - graceful handling of queries that produce an undefined result
v1.0.6 - better JSON Pointer syntax validation (naked tildes ~ no longer allowed and "" is now accepted)
v1.0.5 - properly resolves JSON Pointer paths containing ~0 and ~1, now also resolves plutil-style keypaths
v1.0.4 - If no input detected, prints help and exits instead of waiting for input. Removed tab indents. Fixed pkg installer bug if /usr/local/bin did not exist.
v1.0.3 - Fixed erroneous exit value of 1 if xtrace (set -x) is enabled in a hosting script
v1.0.2 - Fixes erroneous exit value of 1 even if there are no errors
v1.0.1 - simply reverts script sh-bang lines to bash/zsh, since the here string usage is not a sh feature (but is allowed in emulation), there is no functional change since v1.0.0

ljt - little JSON tool v1.0.9

30 Nov 04:33
8f86fde
Compare
Choose a tag to compare

Little JSON Tool (ljt) can retrieve and format data from a JSON document. Allows JSON Pointer and simple JSONPath queries (no filters, wildcards, etc). For more advanced JSON manipulation see my JSON Power tool.

This package installs both the commented ljt and the minified version ljt.min (to use in your shell scripts), into /usr/local/ljt and creates a symlink to ljt in /usr/local/bin.

macOS 10.11+ is required

Installation Notes

The package is not signed or notarized, simply right-click in Finder and choose Open to bypass Gatekeeper and install. You can also remove the quarantine by opening Terminal and running this command: xattr -rc <drag in file from Finder>.

Changelog

v1.0.9 - fixed handling of keypaths with multiple escaped periods
v1.0.8 - better jq-style query forgiveness: a single . returns entire JSON document and leading .[ is treated as $[
v1.0.7 - graceful handling of queries that produce an undefined result
v1.0.6 - better JSON Pointer syntax validation (naked tildes ~ no longer allowed and "" is now accepted)
v1.0.5 - properly resolves JSON Pointer paths containing ~0 and ~1, now also resolves plutil-style keypaths
v1.0.4 - If no input detected, prints help and exits instead of waiting for input. Removed tab indents. Fixed pkg installer bug if /usr/local/bin did not exist.
v1.0.3 - Fixed erroneous exit value of 1 if xtrace (set -x) is enabled in a hosting script
v1.0.2 - Fixes erroneous exit value of 1 even if there are no errors
v1.0.1 - simply reverts script sh-bang lines to bash/zsh, since the here string usage is not a sh feature (but is allowed in emulation), there is no functional change since v1.0.0