io.fintrospect.formats.json

JsonFormat

trait JsonFormat[ROOT_NODETYPE, NODETYPE] extends AnyRef

Capability to create and parse JSON message formats in a generic way. Used to serialise and deserialise request parameters and bodies.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonFormat
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Field = (String, NODETYPE)

Abstract Value Members

  1. abstract def array(elements: NODETYPE*): NODETYPE

  2. abstract def array(elements: Iterable[NODETYPE]): NODETYPE

  3. abstract def boolean(value: Boolean): NODETYPE

  4. abstract def compact(in: ROOT_NODETYPE): String

  5. abstract def nullNode(): NODETYPE

  6. abstract def number(value: BigInteger): NODETYPE

  7. abstract def number(value: Long): NODETYPE

  8. abstract def number(value: BigDecimal): NODETYPE

  9. abstract def number(value: Int): NODETYPE

  10. abstract def obj(fields: (String, NODETYPE)*): ROOT_NODETYPE

  11. abstract def obj(fields: Iterable[(String, NODETYPE)]): ROOT_NODETYPE

  12. abstract def parse(in: String): ROOT_NODETYPE

    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.

  13. abstract def pretty(in: ROOT_NODETYPE): String

  14. abstract def string(value: String): NODETYPE

Concrete 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  17. def objSym(fields: (Symbol, NODETYPE)*): ROOT_NODETYPE

  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped