-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Library to parse and execute JSONPath -- -- Please see the README on GitHub at -- https://github.com/akshaymankar/jsonpath-hs#readme @package jsonpath @version 0.2.0.0 module Data.JSONPath.ExecutionResult data ExecutionResult a ResultList :: [a] -> ExecutionResult a ResultValue :: a -> ExecutionResult a ResultError :: String -> ExecutionResult a concatResults :: [ExecutionResult a] -> ExecutionResult a appendResults :: ExecutionResult a -> ExecutionResult a -> ExecutionResult a maybeToResult :: String -> Maybe a -> ExecutionResult a resultToEither :: ExecutionResult a -> Either String [a] excludeErrors :: [ExecutionResult a] -> [a] instance GHC.Base.Functor Data.JSONPath.ExecutionResult.ExecutionResult instance GHC.Base.Applicative Data.JSONPath.ExecutionResult.ExecutionResult instance GHC.Base.Monad Data.JSONPath.ExecutionResult.ExecutionResult module Data.JSONPath.Types data BeginningPoint Root :: BeginningPoint CurrentObject :: BeginningPoint data Condition Equal :: Condition NotEqual :: Condition GreaterThan :: Condition SmallerThan :: Condition data Literal LitNumber :: Int -> Literal LitString :: Text -> Literal data JSONPathElement KeyChild :: Text -> JSONPathElement KeyChildren :: [Text] -> JSONPathElement AnyChild :: JSONPathElement Slice :: SliceElement -> JSONPathElement SliceUnion :: SliceElement -> SliceElement -> JSONPathElement Filter :: BeginningPoint -> [JSONPathElement] -> Condition -> Literal -> JSONPathElement Search :: [JSONPathElement] -> JSONPathElement data SliceElement SingleIndex :: Int -> SliceElement SimpleSlice :: Int -> Int -> SliceElement SliceWithStep :: Int -> Int -> Int -> SliceElement SliceTo :: Int -> SliceElement SliceToWithStep :: Int -> Int -> SliceElement SliceFrom :: Int -> SliceElement SliceFromWithStep :: Int -> Int -> SliceElement SliceWithOnlyStep :: Int -> SliceElement instance GHC.Classes.Eq Data.JSONPath.Types.JSONPathElement instance GHC.Show.Show Data.JSONPath.Types.JSONPathElement instance GHC.Classes.Eq Data.JSONPath.Types.SliceElement instance GHC.Show.Show Data.JSONPath.Types.SliceElement instance GHC.Classes.Eq Data.JSONPath.Types.Literal instance GHC.Show.Show Data.JSONPath.Types.Literal instance GHC.Classes.Eq Data.JSONPath.Types.Condition instance GHC.Show.Show Data.JSONPath.Types.Condition instance GHC.Classes.Eq Data.JSONPath.Types.BeginningPoint instance GHC.Show.Show Data.JSONPath.Types.BeginningPoint module Data.JSONPath.Parser jsonPathElement :: Parser JSONPathElement jsonPath :: Parser [JSONPathElement] module Data.JSONPath.Execute executeJSONPath :: [JSONPathElement] -> Value -> ExecutionResult Value executeJSONPathEither :: [JSONPathElement] -> Value -> Either String [Value] executeJSONPathElement :: JSONPathElement -> Value -> ExecutionResult Value module Data.JSONPath