Closed Rogach closed 4 years ago
ping @caente
Would be good if this can be released. Thanks!
While we wait for the PR to be merged, one can just import JsSuccess before the call to the macro:
object MyCaseClass {
// Because the below Jsonx macro doesn't reference the full path of JsSuccess
// We need to import JsSuccess until this PR is merged:
// https://github.com/xdotai/play-json-extensions/pull/72
import play.api.libs.json.JsSuccess
implicit val jsonFormat = Jsonx.formatCaseClassUseDefaults[MyCaseClass]
}
Without this change the following message is generated when using
formatCaseClassUseDefaults
: