Hi, is it possible to check body content with json...
# http4k
m
Hi, is it possible to check body content with json object in place of string ? I have this code in my test :
Copy code
response shouldMatch hasStatus(Status.OK).and(hasBody("{\"id\":1,\"name\":\"MyOrga\",\"logo\":\"url\"}").readText()))
I want to extract the json in a resource file and format json to be more human readable (pretty). But my test failed because the string is not the same (route doesn't return a pretty json). Can I validate my data in a json way ?