I wanted to insert a description here, but got tired fighting with haddock escaping. Documentation: http://bitcheese.net/wiki/code/hjpath
Documentation
Evaluates JPath query on JSON String
:: (HJsonLike j, QueryLike q) | |
=> q | JPath query |
-> (Json -> Json) | modifier function |
-> j | JSON |
-> j | Modified JSON |
Modifies JSON content under JPath expression
data QueryElement Source
JPath query building blocks
ObjectLookup String | Look up element in object |
ArrayLookup Integer | Look up array element (from 0 forward or from -1 backward) |
WildcardLookup | Matches any child element (array or hash entries) |
DeepLookup | Matches any number of child entries |
Class that allows type to be used as JSON, all you need to implement is converting to and from Text.HJson.Json
Class that allows type to be used as JPath query