gregnr / jq-utils

Common utility functions for the jq command-line JSON processor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jq utils

This is a collection of jq functions I commonly use. They exist as jq modules.

Installation

Clone this repo into ~/.jq:

$ git clone git@github.com:gregnr/jq-utils.git ~/.jq

Using the functions

Import the module, then call the function:

echo '[{"Sport": "Tennis", "WinningScore": 30}]' | jq -r 'import "utils" as utils; utils::arrayToCsv'

About

Common utility functions for the jq command-line JSON processor

License:MIT License


Languages

Language:JSONiq 100.0%