Packages

  • package root
    Definition Classes
    root
  • package play

    Play framework.

    Play framework.

    Play

    http://www.playframework.com

    Definition Classes
    root
  • package api

    Contains the public API for Scala developers.

    Contains the public API for Scala developers.

    Access the current Play application
    import play.api.Play.current
    Read configuration
    val poolSize = configuration.getInt("engine.pool.size")
    Use the logger
    Logger.info("Hello!")
    Define a Plugin
    class MyPlugin(app: Application) extends Plugin
    Create adhoc applications (for testing)
    val application = Application(new File("."), this.getClass.getClassloader, None, Play.Mode.DEV)
    Definition Classes
    play
  • package libs

    Contains various APIs that are useful while developing web applications.

    Contains various APIs that are useful while developing web applications.

    Definition Classes
    api
  • package json

    Json API For example:

    Json API For example:

    import play.api.libs.json._
    import play.api.libs.functional.syntax._
    
    case class User(id: Long, name: String, friends: Seq[User] = Seq.empty)
    object User {
    
      // In this format, an undefined friends property is mapped to an empty list
      implicit val format: Format[User] = (
        (__ \ "id").format[Long] and
        (__ \ "name").format[String] and
        (__ \ "friends").lazyFormatNullable(implicitly[Format[Seq[User]]])
          .inmap[Seq[User]](_ getOrElse Seq.empty, Some(_))
      )(User.apply, unlift(User.unapply))
    }
    
    //then in a controller:
    
    object MyController extends Controller {
       def displayUserAsJson(id: String) = Action {
          Ok(Json.toJson(User(id.toLong, "myName")))
       }
       def saveUser(jsonString: String)= Action {
         val user = Json.parse(jsonString).as[User]
         myDataStore.save(user)
         Ok
       }
    }
    Definition Classes
    libs
  • package jackson
    Definition Classes
    json
  • PlayJsonModule

object PlayJsonModule extends PlayJsonModule

Annotations
@deprecated
Deprecated

(Since version 2.6.11) Use PlayJsonModule class instead

Source
JacksonJson.scala
Linear Supertypes
PlayJsonModule, SimpleModule, Serializable, Module, Versioned, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PlayJsonModule
  2. PlayJsonModule
  3. SimpleModule
  4. Serializable
  5. Module
  6. Versioned
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAbstractTypeMapping[T](arg0: Class[T], arg1: Class[_ <: T]): SimpleModule
    Definition Classes
    SimpleModule
  5. def addDeserializer[T](arg0: Class[T], arg1: JsonDeserializer[_ <: T]): SimpleModule
    Definition Classes
    SimpleModule
  6. def addKeyDeserializer(arg0: Class[_], arg1: KeyDeserializer): SimpleModule
    Definition Classes
    SimpleModule
  7. def addKeySerializer[T](arg0: Class[_ <: T], arg1: JsonSerializer[T]): SimpleModule
    Definition Classes
    SimpleModule
  8. def addSerializer[T](arg0: Class[_ <: T], arg1: JsonSerializer[T]): SimpleModule
    Definition Classes
    SimpleModule
  9. def addSerializer(arg0: JsonSerializer[_]): SimpleModule
    Definition Classes
    SimpleModule
  10. def addValueInstantiator(arg0: Class[_], arg1: ValueInstantiator): SimpleModule
    Definition Classes
    SimpleModule
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getModuleName(): String
    Definition Classes
    SimpleModule → Module
  18. def getTypeId(): AnyRef
    Definition Classes
    SimpleModule → Module
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def registerSubtypes(arg0: <repeated...>[NamedType]): SimpleModule
    Definition Classes
    SimpleModule
    Annotations
    @transient()
  25. def registerSubtypes(arg0: <repeated...>[Class[_]]): SimpleModule
    Definition Classes
    SimpleModule
    Annotations
    @transient()
  26. def setAbstractTypes(arg0: SimpleAbstractTypeResolver): Unit
    Definition Classes
    SimpleModule
  27. def setDeserializerModifier(arg0: BeanDeserializerModifier): SimpleModule
    Definition Classes
    SimpleModule
  28. def setDeserializers(arg0: SimpleDeserializers): Unit
    Definition Classes
    SimpleModule
  29. def setKeyDeserializers(arg0: SimpleKeyDeserializers): Unit
    Definition Classes
    SimpleModule
  30. def setKeySerializers(arg0: SimpleSerializers): Unit
    Definition Classes
    SimpleModule
  31. def setMixInAnnotation(arg0: Class[_], arg1: Class[_]): SimpleModule
    Definition Classes
    SimpleModule
  32. def setNamingStrategy(arg0: PropertyNamingStrategy): SimpleModule
    Attributes
    protected[com.fasterxml.jackson.databind.module]
    Definition Classes
    SimpleModule
  33. def setSerializerModifier(arg0: BeanSerializerModifier): SimpleModule
    Definition Classes
    SimpleModule
  34. def setSerializers(arg0: SimpleSerializers): Unit
    Definition Classes
    SimpleModule
  35. def setValueInstantiators(arg0: SimpleValueInstantiators): Unit
    Definition Classes
    SimpleModule
  36. def setupModule(context: SetupContext): Unit
    Definition Classes
    PlayJsonModule → SimpleModule → Module
  37. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. def version(): Version
    Definition Classes
    SimpleModule → Module → Versioned
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from PlayJsonModule

Inherited from SimpleModule

Inherited from Serializable

Inherited from Module

Inherited from Versioned

Inherited from AnyRef

Inherited from Any

Ungrouped