hjsonpointer-0.2.0.4: JSON Pointer library

Safe HaskellNone
LanguageHaskell2010

Data.JsonPointer

Synopsis

Documentation

data PointerFormatError Source

Constructors

InvalidFirstChar

The Text to build a JSON Pointer must either be empty or start with a "/".

UnescapedTilde 

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.