jq module implementing JSON Pointer (RFC 6902)
This git repository contains an implementation of JSON Pointer (RFC 6902) as module for the jq data transformation language.
Installation requires jq version 1.5 or newer.
Put jsonpatch.jq
to a place where jq can find it as module.
One way to do so is to download the current version of the file:
mkdir -p ~/.jq && git clone https://github.com/nichtich/jq-jsonpatch.git ~/.jq/jsonpatch
Or check out this repository to directory ~/.jq/jsonpatch/
:
mkdir -p ~/.jq && wget -N https://github.com/nichtich/jsonpatch/raw/master/jsonpatch.jq
This module requires jq module jsonpointer so make sure to also install it.
See jq manual how to use jq modules in general and API description below how to use this module.
...
The source code is hosted at https://github.com/nichtich/jq-jsonpatch.
Bug reports and feature requests are welcome!
Made available under the MIT License by Jakob Voß.