Open eeasley-coursera opened 7 years ago
For classes where these libraries overlap, does play-json-extensions produce and read the same output as play-json? Is it supposed to?
play-json-extensions
play-json
e.g.
case class Foo(bar: String, baz: Int) object Foo { val jsonFormat: OFormat[Foo] = Json.format[Foo] val jsonxFormat: OFormat[Foo] = Jsonx.formatCaseClassUseDefaults[Foo] val foo: Foo = Foo("ab", 1) val fooVal: JsValue = ... assert(jsonFormat.writes(foo) == jsonxFormat.writes(foo)) assert(jsonFormat.reads(foo) == jsonxFormat.reads(foo)) }
For classes where these libraries overlap, does
play-json-extensions
produce and read the same output asplay-json
? Is it supposed to?e.g.