scalatest-json icon indicating copy to clipboard operation
scalatest-json copied to clipboard

Matching on play json ast instead of string

Open francisdb opened this issue 5 years ago • 1 comments

I would like to match the play JsValue instead of String but could not find a way to do that

import play.api.libs.json.Json._

arr(obj("name" -> "test")) should matchJson(arr(obj("name2" -> "test")))

francisdb avatar Sep 26 '19 14:09 francisdb

Hi, not a bad idea. PR's welcome.

stephennancekivell avatar Sep 26 '19 22:09 stephennancekivell