| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.JSONPath.Types
Synopsis
- data BeginningPoint
- data Condition
- data Comparable
- data JSONPathElement
- = KeyChild Text
- | IndexChild Int
- | AnyChild
- | Slice (Maybe Int) (Maybe Int) (Maybe Int)
- | Union [UnionElement]
- | Filter FilterExpr
- | Search [JSONPathElement]
- data UnionElement
- data FilterExpr
- data SingularPathElement
- data SingularPath = SingularPath BeginningPoint [SingularPathElement]
Documentation
data BeginningPoint Source #
Constructors
| Root | |
| CurrentObject |
Instances
| Show BeginningPoint Source # | |
Defined in Data.JSONPath.Types | |
| Eq BeginningPoint Source # | |
Defined in Data.JSONPath.Types Methods (==) :: BeginningPoint -> BeginningPoint -> Bool Source # (/=) :: BeginningPoint -> BeginningPoint -> Bool Source # | |
data Comparable Source #
Constructors
| CmpNumber Scientific | |
| CmpString Text | |
| CmpBool Bool | |
| CmpNull | |
| CmpPath SingularPath |
Instances
| Show Comparable Source # | |
Defined in Data.JSONPath.Types | |
| Eq Comparable Source # | |
Defined in Data.JSONPath.Types Methods (==) :: Comparable -> Comparable -> Bool Source # (/=) :: Comparable -> Comparable -> Bool Source # | |
data JSONPathElement Source #
A JSONPath is a list of JSONPathElements.
Constructors
| KeyChild Text | '$.foo' or '$["foo"]' |
| IndexChild Int | '$[1]' |
| AnyChild | '$[*]' |
| Slice (Maybe Int) (Maybe Int) (Maybe Int) | '$[1:7]', '$[0:10:2]', '$[::2]', '$[::]', etc. |
| Union [UnionElement] | '$[0,1,9]' or '$[0, 1:2, "foo", "bar"]' |
| Filter FilterExpr | '$[?( |
| Search [JSONPathElement] | '$..foo.bar' |
Instances
| Show JSONPathElement Source # | |
Defined in Data.JSONPath.Types | |
| Eq JSONPathElement Source # | |
Defined in Data.JSONPath.Types Methods (==) :: JSONPathElement -> JSONPathElement -> Bool Source # (/=) :: JSONPathElement -> JSONPathElement -> Bool Source # | |
data UnionElement Source #
Elements which can occur inside a union
Instances
| Show UnionElement Source # | |
Defined in Data.JSONPath.Types | |
| Eq UnionElement Source # | |
Defined in Data.JSONPath.Types Methods (==) :: UnionElement -> UnionElement -> Bool Source # (/=) :: UnionElement -> UnionElement -> Bool Source # | |
data FilterExpr Source #
Constructors
| ExistsExpr SingularPath | |
| ComparisonExpr Comparable Condition Comparable | |
| And FilterExpr FilterExpr | |
| Or FilterExpr FilterExpr | |
| Not FilterExpr |
Instances
| Show FilterExpr Source # | |
Defined in Data.JSONPath.Types | |
| Eq FilterExpr Source # | |
Defined in Data.JSONPath.Types Methods (==) :: FilterExpr -> FilterExpr -> Bool Source # (/=) :: FilterExpr -> FilterExpr -> Bool Source # | |
data SingularPathElement Source #
Instances
| Show SingularPathElement Source # | |
Defined in Data.JSONPath.Types | |
| Eq SingularPathElement Source # | |
Defined in Data.JSONPath.Types Methods (==) :: SingularPathElement -> SingularPathElement -> Bool Source # (/=) :: SingularPathElement -> SingularPathElement -> Bool Source # | |
data SingularPath Source #
A JSONPath which finds at max one value, given a beginning point. Used by
FilterExpr for ExistsExpr and ComparisonExpr.
Constructors
| SingularPath BeginningPoint [SingularPathElement] |
Instances
| Show SingularPath Source # | |
Defined in Data.JSONPath.Types | |
| Eq SingularPath Source # | |
Defined in Data.JSONPath.Types Methods (==) :: SingularPath -> SingularPath -> Bool Source # (/=) :: SingularPath -> SingularPath -> Bool Source # | |