pact-foundation / pact-jvm

JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://docs.pact.io
Apache License 2.0
1.08k stars 479 forks source link

Ability to verify stringified JSON #1803

Open Vantuz opened 3 months ago

Vantuz commented 3 months ago

Hello! Is there a way to verify stringified json as in this stackoverflow question? If no, are there plans to implement this feature? If no, would it be possible for me to implement this feature and contribute it as a pull request to this repo?

rholshausen commented 3 months ago

Pull requests are always welcome. But I don't know how you will able to know that you need to parse a field in the middle of a payload as JSON and then recursively match it.