io.fintrospect.formats.json.Json4s

Json4sFormat

class Json4sFormat[T] extends JsonFormat[JValue, JValue]

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

Instance Constructors

  1. new Json4sFormat(jsonMethods: JsonMethods[T], serialization: Serialization, useBigDecimalForDouble: Boolean)

Type Members

  1. type Field = (String, JValue)

    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: Iterable[JValue]): JValue

    Create a JSON array from the passed elements

    Create a JSON array from the passed elements

    Definition Classes
    Json4sFormatJsonFormat
  7. def array(elements: JValue*): JValue

    Create a JSON array from the passed elements

    Create a JSON array from the passed elements

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

    Definition Classes
    Any
  9. def body[R](description: Option[String] = None, example: R = null, formats: Formats = serialization.formats(NoTypeHints))(implicit mf: Manifest[R]): UniBody[R]

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

  10. def bodySpec[R](description: Option[String] = None, formats: Formats = serialization.formats(NoTypeHints))(implicit mf: Manifest[R]): BodySpec[R]

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

  11. def boolean(value: Boolean): JValue

    Create a JSON boolean node

    Create a JSON boolean node

    Definition Classes
    Json4sFormatJsonFormat
  12. def clone(): AnyRef

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

    Compact printed JSON

    Compact printed JSON

    Definition Classes
    Json4sFormatJsonFormat
  14. def decode[R](in: JValue, formats: Formats = serialization.formats(NoTypeHints))(implicit mf: Manifest[R]): R

  15. def encode(in: AnyRef, formats: Formats = serialization.formats(NoTypeHints)): JValue

  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(): JValue

    Create a null JSON node

    Create a null JSON node

    Definition Classes
    Json4sFormatJsonFormat
  26. def number(value: BigInteger): JValue

    Create a JSON number node

    Create a JSON number node

    Definition Classes
    Json4sFormatJsonFormat
  27. def number(value: Long): JValue

    Create a JSON number node

    Create a JSON number node

    Definition Classes
    Json4sFormatJsonFormat
  28. def number(value: BigDecimal): JValue

    Create a JSON number node

    Create a JSON number node

    Definition Classes
    Json4sFormatJsonFormat
  29. def number(value: Int): JValue

    Create a JSON number node

    Create a JSON number node

    Definition Classes
    Json4sFormatJsonFormat
  30. def obj(fields: (String, JValue)*): JValue

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

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

    Definition Classes
    Json4sFormatJsonFormat
  31. def obj(fields: Iterable[(String, JValue)]): JValue

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

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

    Definition Classes
    Json4sFormatJsonFormat
  32. def objSym(fields: (Symbol, JValue)*): JValue

    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, formats: Formats = serialization.formats(NoTypeHints))(implicit mf: Manifest[R]): ParameterSpec[R]

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

  34. def parse(in: String): JValue

    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
    Json4sFormatJsonFormat
  35. def pretty(in: JValue): String

    Pretty printed JSON

    Pretty printed JSON

    Definition Classes
    Json4sFormatJsonFormat
  36. def responseSpec[R](statusAndDescription: (Status, String), example: R, formats: Formats = serialization.formats(NoTypeHints))(implicit mf: Manifest[R]): ResponseSpec

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

  37. val serialization: Serialization

  38. def string(value: String): JValue

    Create a JSON string node

    Create a JSON string node

    Definition Classes
    Json4sFormatJsonFormat
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def toString(): String

    Definition Classes
    AnyRef → Any
  41. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsonFormat[JValue, JValue]

Inherited from AnyRef

Inherited from Any

Ungrouped