trait Formats extends AnyRef
Formats to use when converting JSON. Formats are usually configured by using an implicit parameter:
implicit val formats = net.liftweb.json.DefaultFormats
- Self Type
- Formats
- Alphabetic
- By Inheritance
- Formats
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract val dateFormat: DateFormat
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +[A](newSerializer: FieldSerializer[A])(implicit mf: Manifest[A]): Formats
Adds a field serializer for a given type to this formats.
- def +(newSerializer: Serializer[_]): Formats
Adds the specified custom serializer to this formats.
- def +(extraHints: TypeHints): Formats
Adds the specified type hints to this formats.
- def ++(newSerializers: Traversable[Serializer[_]]): Formats
Adds the specified custom serializers to this formats.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def customDeserializer(implicit format: Formats): PartialFunction[(TypeInfo, JValue), Any]
- def customSerializer(implicit format: Formats): PartialFunction[Any, JValue]
- val customSerializers: List[Serializer[_]]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val fieldSerializers: List[(Class[_], FieldSerializer[_])]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val parameterNameReader: ParameterNameReader
Parameter name reading strategy.
Parameter name reading strategy. By deafult 'paranamer' is used.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val tuplesAsArrays: Boolean
Support for the tuple decomposition/extraction that represents tuples as JSON arrays.
Support for the tuple decomposition/extraction that represents tuples as JSON arrays. This provides better support for heterogenous arrays in JSON, but enable it at your own risk as it does change the behavior of serialization/deserialization and comes with some caveats (such as Scala primitives not being recognized reliably during extraction).
- val typeHintFieldName: String
The name of the field in JSON where type hints are added (jsonClass by default)
- val typeHints: TypeHints
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()