Json.Path
Contents
data Path Source #
A path to an object.
Constructors
JSON path element of a key into an object, "object.key".
JSON path element of an index into an array, "array[index]". Negative numbers result in undefined behavior.
Defined in Json.Path
Methods
(==) :: Path -> Path -> Bool #
(/=) :: Path -> Path -> Bool #
showsPrec :: Int -> Path -> ShowS #
show :: Path -> String #
showList :: [Path] -> ShowS #
encode :: Path -> ShortText Source #
builderUtf8 :: Path -> Builder Source #
query :: Path -> Value -> Maybe Value Source #
Search for an element at the given path.
reverse :: Path -> Path Source #