hjpath-2.0: XPath-like syntax for querying JSON

Text.JSON.JPath

Description

I wanted to insert a description here, but got tired fighting with haddock escaping. Documentation: http://bitcheese.net/wiki/code/hjpath

Synopsis

Documentation

jPathSource

Arguments

:: String

JPath query

-> String

JSON as String

-> Either String [Json]

(Left parsing error) or (Right results)

Evaluates JPath query on JSON String

jPath'Source

Arguments

:: String

JPath query

-> Json

Parsed JSON

-> [Json]

List of results

Evaluates JPath query on pre-parsed JSON

jPathModifySource

Arguments

:: String

JPath query

-> (Json -> Json)

Element modifier function

-> String

JSON as string

-> Either String String

(Left parsing error) or (Right modified JSON as string)

Modifies JSON content under JPath expression

jPathModify'Source

Arguments

:: String

JPath query

-> (Json -> Json)

Element modifier function

-> Json

JSON

-> Json

modified JSON

jPathModify for pre-parsed JSON