hjsonpointer: JSON Pointer library

[ data, deprecated, library, mit ] [ Propose Tags ]

[Skip to Readme]
Versions [RSS] [faq],,,,,,,,,,,,,,,, 1.1.1, 1.2.0, 1.3.0, 1.4.0, 1.5.0
Change log changelog.txt
Dependencies aeson (==0.8.*), base (==4.7.*), text (==1.2.*), unordered-containers (==0.2.*), vector (==0.10.*) [details]
License MIT
Author Ian Grant Jeffries
Maintainer ian@housejeffries.com
Category Data
Home page https://github.com/seagreen/hjsonpointer
Source repo head: git clone git://github.com/seagreen/hjsonpointer.git
Uploaded by seagreen at 2015-03-26T23:40:44Z
Distributions Arch:1.5.0, NixOS:1.5.0, Stackage:1.5.0
Downloads 14600 total (125 in the last 30 days)
Rating 1.75 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2015-03-27 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees


Readme for hjsonpointer-

[back to package description]


JSON Pointer library for Haskell.


{-# LANGUAGE OverloadedStrings #-}

module Main where

import           Data.Aeson
import qualified Data.HashMap.Strict as H
import           Data.JsonPointer

main :: IO ()
main =
  case jsonPointer "/foo" of
    Left e     -> print e
    Right pntr ->
      case resolvePointer pntr (Object $ H.singleton "foo" $ String "bar") of
        Left e2 -> print e2
        Right v -> print v


String "bar"