io.fintrospect.formats.json.Play

JsonFormat

object JsonFormat extends JsonFormat[JsValue, JsValue]

Use this to parse and create JSON objects in a generic way

Definition Classes
PlayJsonLibrary
Linear Supertypes
JsonFormat[JsValue, JsValue], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonFormat
  2. JsonFormat
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Field = (String, JsValue)

    Definition Classes
    JsonFormat

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def array(elements: JsValue*): JsArray

    Create a JSON array from the passed elements

    Create a JSON array from the passed elements

    Definition Classes
    JsonFormatJsonFormat
  7. def array(elements: Iterable[JsValue]): JsArray

    Create a JSON array from the passed elements

    Create a JSON array from the passed elements

    Definition Classes
    JsonFormatJsonFormat
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def body[R](description: Option[String] = None, example: R = null)(implicit reads: Reads[R], writes: Writes[R]): UniBody[R]

    Convenience method for creating Body that just use straight JSON encoding/decoding logic

  10. def bodySpec[R](description: Option[String] = None)(implicit reads: Reads[R], writes: Writes[R]): BodySpec[R]

    Convenience method for creating BodySpecs that just use straight JSON encoding/decoding logic

  11. def boolean(value: Boolean): JsBoolean

    Create a JSON boolean node

    Create a JSON boolean node

    Definition Classes
    JsonFormatJsonFormat
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def compact(node: JsValue): String

    Compact printed JSON

    Compact printed JSON

    Definition Classes
    JsonFormatJsonFormat
  14. def decode[T](in: JsValue)(implicit reads: Reads[T]): T

  15. def encode[T](in: T)(implicit writes: Writes[T]): JsValue

  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. def nullNode(): JsNull.type

    Create a null JSON node

    Create a null JSON node

    Definition Classes
    JsonFormatJsonFormat
  26. def number(value: BigInteger): JsNumber

    Create a JSON number node

    Create a JSON number node

    Definition Classes
    JsonFormatJsonFormat
  27. def number(value: Long): JsNumber

    Create a JSON number node

    Create a JSON number node

    Definition Classes
    JsonFormatJsonFormat
  28. def number(value: BigDecimal): JsNumber

    Create a JSON number node

    Create a JSON number node

    Definition Classes
    JsonFormatJsonFormat
  29. def number(value: Int): JsNumber

    Create a JSON number node

    Create a JSON number node

    Definition Classes
    JsonFormatJsonFormat
  30. def obj(fields: (String, JsValue)*): JsValue

    Create a JSON object from the passed String -> Node pairs

    Create a JSON object from the passed String -> Node pairs

    Definition Classes
    JsonFormatJsonFormat
  31. def obj(fields: Iterable[(String, JsValue)]): JsValue

    Create a JSON object from the passed String -> Node pairs

    Create a JSON object from the passed String -> Node pairs

    Definition Classes
    JsonFormatJsonFormat
  32. def objSym(fields: (Symbol, JsValue)*): JsValue

    Create a JSON object from the passed Symbol -> Node pairs

    Create a JSON object from the passed Symbol -> Node pairs

    Definition Classes
    JsonFormat
  33. def parameterSpec[R](name: String, description: Option[String] = None)(implicit reads: Reads[R], writes: Writes[R]): ParameterSpec[R]

    Convenience method for creating ParameterSpecs that just use straight JSON encoding/decoding logic

  34. def parse(in: String): JsValue

    Attempt to parse the JSON into the root node type.

    Attempt to parse the JSON into the root node type. Implementations should throw an exception if the parsing fails, which is dealt with by the surrounding deserialisation mechanism, so you don't need to worry about having to muddy your own code with the exception handling.

    Definition Classes
    JsonFormatJsonFormat
  35. def pretty(node: JsValue): String

    Pretty printed JSON

    Pretty printed JSON

    Definition Classes
    JsonFormatJsonFormat
  36. def responseSpec[R](statusAndDescription: (Status, String), example: R)(implicit reads: Reads[R], writes: Writes[R]): ResponseSpec

    Convenience method for creating ResponseSpecs that just use straight JSON encoding/decoding logic for examples

  37. def string(value: String): JsString

    Create a JSON string node

    Create a JSON string node

    Definition Classes
    JsonFormatJsonFormat
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  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
    @throws( ... )

Inherited from JsonFormat[JsValue, JsValue]

Inherited from AnyRef

Inherited from Any

Ungrouped