v0.1.0
The first release of jsonize and its jz command.
Added
jzconverts command output from standard input or--fileinto
JSON. It identifies the format from the text, and refuses input it
cannot identify or read completely instead of guessing.jz run COMMAND [args...]runs a command without a shell, converts its
standard output and exits with the command's status. The command name
and its arguments narrow the choice of definition;--env,
--keep-localeand--timeoutcontrol how the command runs.- Output options:
--pretty,--yaml,--streamfor commands that keep
printing,--extractand--excludefor keys, and--rawfor values
without field conversion. - Selection options:
--parserand--variantname a definition,
--definesupplies one inline,--columnsnames csv columns, and
--explainreports why a definition was chosen. --assume-yearand--assume-zonefor timestamps printed without a
year or with a zone abbreviation.- An embedded registry of 451 YAML definitions for 169 commands and
files, covering GNU, BusyBox, macOS, FreeBSD and Windows variants where
their output differs, with 1,226 captured or documented fixtures. - A published JSON Schema for the output of every definition under
registry/schemas, shown byjz list --schema COMMAND VARIANT. jz listfor supported commands and definitions, andjz testfor
checking local definitions against their fixtures and the official
fixture corpus.- Layered registries:
JSONIZE_REGISTRY_PATH, the user registry and the
embedded registry. Definitions are data and are never downloaded. - bash and zsh completion from
jz completion. - Go packages under
pkg/for loading registries, selecting a definition
and parsing text. - Release archives for Linux, macOS and Windows on amd64 and arm64,
.deb,.rpmand.apkpackages, SHA-256 checksums and GitHub build
provenance.
Known limitations
- Rounded human-readable sizes such as
1.8Tstay strings. - Some generic formats, such as
du,wcandenv, are read only when
the parser is named. - Windows command output is read for
ipconfig,ipconfig /alland
systeminfoin English. Other languages and code pages are not
checked. - FreeBSD is tested by the end-to-end suite but has no release archive.
Install it withgo install. - Windows release binaries are built with
GOEXPERIMENT=nogreenteagc,
the garbage collector configuration the Windows CI jobs run.