graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Data.Parser.JSONPath

Synopsis

Documentation

encodeJSONPath :: JSONPath -> Text Source #

Encodes a JSON path as text that looks like code you would write in order to traverse that path in JavaScript.

parseJSONPath :: Text -> Either Text JSONPath Source #

element :: Parser JSONPathElement Source #

name :: Parser Key Source #

bracketElement :: Parser JSONPathElement Source #

Parses a JSON property key or index in square bracket format, e.g. > [42] > ["hello"] > [你好]