Home

Awesome

JSON command-line utility in Haskell

Jp is command-line utility to parse and transform JSON. JSON inputs can be filtered and transformed with Haskell Lens expressions.

Installation

Example of usages

cat ./tests/simple.json | sandbox exec ./dist/build/jp/jp -p 
sandbox exec ./dist/build/jp/jp ./tests/obj1.json -e '<&> members . _Number *~ 10'

Pretty printing

Resulting JSON expressions are pretty-printed with colors.

Lens expression

Lens expressions can be used to filter and modify the input.

Lens tutorials:

Screenshots

Applying a Lens expression

Lens expression

Simple Pretty Printing

Simple pretty printing