Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype JsonPointer = JsonPointer {
- _unJsonPointer :: [Text]
- data PointerFormatError
- data ResolutionError
- jsonPointer :: Text -> Either PointerFormatError JsonPointer
- resolvePointer :: JsonPointer -> Value -> Either ResolutionError Value
- resolveRefTok :: JsonPointer -> Value -> Either ResolutionError (JsonPointer, Value)
Documentation
newtype JsonPointer Source
data PointerFormatError Source
InvalidFirstChar | The Text to build a JSON Pointer must either be empty or start with a "/". |
UnescapedTilde |
data ResolutionError Source
jsonPointer :: Text -> Either PointerFormatError JsonPointer Source
The Text to build a JSON Pointer must either be empty or start with a "/". If you're turning a URI Fragment into a JSON Pointer you must drop the initial "#".
resolveRefTok :: JsonPointer -> Value -> Either ResolutionError (JsonPointer, Value) Source
For internal use and specialized applications that don't want to resolve the entire pointer at once.