ASIMOV module for JSON transformation using the jq filter language.
- Transforms JSON inputs using the jq programming language.
- Supports values from environment variables using the
env.USERsyntax. - Loads environment variables from
.env(aka dotenv) files. - Distributed as a standalone static binary with zero runtime dependencies.
- Rust 1.85+ (2024 edition) if building from source code
Installation with the ASIMOV CLI
asimov module install jq -vpip install -U asimov-jq-modulegem install asimov-jq-modulenpm install -g asimov-jq-modulecargo install asimov-jq-moduleasimov-jq-runner filter.jq < input.json > output.jsonThis module requires no configuration.
asimov-jq-runner: filters JSON from standard input to standard output
asimov-jq-runner
Usage: asimov-jq-runner [OPTIONS] <FILTER>
Arguments:
<FILTER> The `.jq` filter file to execute
Options:
-d, --debug Enable debugging output
--license Show license information
-v, --verbose... Enable verbose output (may be repeated for more verbosity)
-V, --version Print version information
-h, --help Print help
git clone https://github.com/asimov-modules/asimov-jq-module.git