mandubian / play-json-alone

Sample of Play2.2-SNAPSHOT JSON API used stand-alone
24 stars 0 forks source link

play-json module #8

Open jimleroyer opened 10 years ago

jimleroyer commented 10 years ago

Hello,

Play 2.2 is out but I don't see the play-json module listed anywhere on this page: http://www.playframework.com/documentation/2.2.x/Modules

Where should it be located? Sorry if it's really obvious, I'm new to the play framework. Thanks!

mandubian commented 10 years ago

Actually it's an internal module of Play that can be used independently of Play as Iteratees. But it's not a module in the meaning "plugin" or "external module". You can find its code in play code on github. The jar is located in the same place as play in typesafe repository...

jimleroyer commented 10 years ago

Okay I see it there, right? http://repo.typesafe.com/typesafe/repo/play/play-iteratees_2.10/

That would be great to have the module key conveniently offered in the Keys trait of the play sbt-plugin, just like Anorm, jdbc, etc..

package play
trait Keys extends scala.AnyRef {
  val jdbc : sbt.ModuleID = { /* compiled code */ }
  val anorm : sbt.ModuleID = { /* compiled code */ }
  val javaCore : sbt.ModuleID = { /* compiled code */ }
  val javaJdbc : sbt.ModuleID = { /* compiled code */ }
  val javaEbean : sbt.ModuleID = { /* compiled code */ }
  val javaJpa : sbt.ModuleID = { /* compiled code */ }
  ...

Thanks for your quick answer!

mandubian commented 10 years ago

But actually you don't need it in Play because play depends on iteratee and json so you have them whatever happens ;)

jimleroyer commented 10 years ago

Oh yeah true, silly me, hehe..