JsonTableRenderer

com.phasmidsoftware.tableparser.json.render.JsonTableRenderer
class JsonTableRenderer[T] extends Renderer[Table[T], String]

Class JsonTableRenderer, which will render a Table[T] as a JSON String (see TableCodecs for the format).

Type parameters

T

the underlying type of the Table (i.e., the Row type) for which there must be evidence of Encoder[T].

Attributes

Graph
Supertypes
trait Renderer[Table[T], String]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def render(tt: Table[T], attrs: Map[String, String]): String

Renders a Table[T] object into its JSON string representation.

Renders a Table[T] object into its JSON string representation.

Value parameters

attrs

a map of attributes used for customizing the rendering process (not currently used in this implementation).

tt

the table to be rendered as a JSON string.

Attributes

Returns

a JSON string (indented by two spaces) representing the table.

Inherited methods

def render(t: Table[T]): String

Render an instance of T as an O, qualifying the rendering with no attributes.

Render an instance of T as an O, qualifying the rendering with no attributes.

Value parameters

t

a T to be rendered.

Attributes

Returns

an instance of type O.

Inherited from:
Renderer