I have a method accepting T and I'd like to do Json.parse(someString).as[T]
.
Now the T classes that I pass in have implicit formats defined such as implicit lazy val format: Format[Foo] = ...
. However, I'd like to be able to tell the compiler to find the implicit formats at runtime instead of complaining "No Json deserializer found for type T".