score:0

Accepted answer

This was a problem with Scala compiler version compatibility. I compiled my SimpleJSONAPI dependency with Scala 2.11, while the Play app was being built with Scala 2.10. When I changed the SimpleJSONAPI dependency to also build with Scala 2.10, I was able to use it in my Play app.

This was confusing because it's not obvious from the project files which version of Scala a Play app is using, and the error message about ArrowAssoc gives no indication that it is a compiler version issue.

score:0

I think your import is incorrect given how you are using the API. Either exclude the object name on the import...

import com.github.wpm.SimpleJSONAPI._

Or change your usage to drop the object name...

val j = toJson("The JSON API")

Related Query

More Query from same tag