akshaymankar / jsonpath-hs

Haskell implementation of JSONPath

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsonpath-hs

Implementation of jsonpath as described by Steffen Göessner.

State of this library

This library is still work in progress, but feel free to use it create issues. It lacks some features and has a few variances from the description.

Missing Features

  • The Length funtion: The ability to say $.length. It will just look for length key as of now.
  • ScriptExpression: The ability to say things like $.book[(3+1)]

Variances

  • The $ sign in the beginning is not compulsory
  • The $..* will not produce the root object itself.

I have copied a few of the tests from there, I will probably just sub-module the repository if and when the whole test suite is green.

Uses

I am using this library to support GCP authentication in the Kubernetes haskell client.

About

Haskell implementation of JSONPath

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 58.7%Language:Dhall 27.2%Language:Nix 10.1%Language:Shell 4.0%