Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- encodeJSONPath :: JSONPath -> Text
- parseJSONPath :: Text -> Either Text JSONPath
- element :: Parser JSONPathElement
- name :: Parser Key
- bracketElement :: Parser JSONPathElement
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 #
bracketElement :: Parser JSONPathElement Source #
Parses a JSON property key or index in square bracket format, e.g.
> [42]
> ["hello"]
> [你好
]