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