json-pointer-0.1.2.1: JSON Pointer parsing and interpretation utilities

Safe HaskellNone
LanguageHaskell2010

JSONPointer.Model

Synopsis

Documentation

data JSONPointer Source #

A model of JSONPointer represented in terms of a monoid.

run :: Monoid m => JSONPointer -> (Maybe Int -> Text -> m) -> m Source #

Given a JSON Pointer specification and a function, which interprets a possible index or a textual key into a monoid, results in such a monoid.

atIndexOrKey :: Maybe Int -> Text -> JSONPointer Source #

Constructs JSON Pointer from a possible array index and a textual key.