PactPath
object PactPath
PactPath (defined in the pact standard) is JsonPath with a few tweaks to support querying XML with a nearly JsonPath-like syntax. Specific modifications to JsonPath are:
- names match to element names ($.body.animals maps to <animals>)
- @names match to attribute names
- #text match to the text elements
JsonPath support a ["xxx"] form which we use for to escape the @ and #. e.g. foo.bar["#text"] foo.bar['@id']
class Object
trait Matchable
class Any