Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data JSONPointer
- run :: Monoid m => JSONPointer -> (Maybe Int -> Text -> m) -> m
- atIndexOrKey :: Maybe Int -> Text -> JSONPointer
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.