abstract class TableJsonFormat[T] extends RootJsonFormat[Table[T]]

Abstract class TableJsonFormat[T] which extends RootJsonFormat of Table[T]

T

for which there must be evidence of JsonFormat[T].

Linear Supertypes
RootJsonFormat[Table[T]], RootJsonWriter[Table[T]], RootJsonReader[Table[T]], JsonFormat[Table[T]], JsonWriter[Table[T]], JsonReader[Table[T]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TableJsonFormat
  2. RootJsonFormat
  3. RootJsonWriter
  4. RootJsonReader
  5. JsonFormat
  6. JsonWriter
  7. JsonReader
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TableJsonFormat()(implicit arg0: JsonFormat[T])

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. def read(json: JsValue): Table[T]

    Reads a JSON representation of a table and converts it into a Table[T] instance.

    Reads a JSON representation of a table and converts it into a Table[T] instance.

    The JSON object is expected to represent a table structure with optional "header" and required "rows" keys. The "header" key, if present, should map to a JSON array of strings representing the table's header. The "rows" key should map to a JSON array of elements convertible to the type T.

    json

    The JSON object to be parsed as a Table[T]. The structure must include:

    • "rows": A JSON array representing the rows of the table, where each element of the array can be converted to an instance of type T.
    • (Optional) "header": A JSON array of strings representing the header of the table.
    returns

    A Table[T] instance parsed from the provided JSON object. If "rows" is missing, an empty table is returned. If "header" is missing, the table's header will be None.

    Definition Classes
    TableJsonFormat → JsonReader
    Exceptions thrown

    DeserializationException If the input JSON is not a valid object or cannot be parsed as a Table[T].

  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  20. def write(table: Table[T]): JsValue

    Serializes a Table[T] object into a JSON representation.

    Serializes a Table[T] object into a JSON representation.

    The JSON object will contain a "rows" key representing the serialized rows of the table, and, if a header exists, a "header" key that includes the serialized header.

    table

    The Table[T] instance to be serialized. The input must have a maybeHeader (optional header) and rows, where each row can be serialized to JSON.

    returns

    A JsValue representing the serialized JSON structure of the table.

    Definition Classes
    TableJsonFormat → JsonWriter

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from RootJsonFormat[Table[T]]

Inherited from RootJsonWriter[Table[T]]

Inherited from RootJsonReader[Table[T]]

Inherited from JsonFormat[Table[T]]

Inherited from JsonWriter[Table[T]]

Inherited from JsonReader[Table[T]]

Inherited from AnyRef

Inherited from Any

Ungrouped