CalCom.Json (cal_com v0.3.0)

Copy Markdown

A recursively typed value for provider-defined dynamic JSON.

Summary

Types

t()

A dynamic JSON value without untyped object maps.

Functions

Serialize a typed dynamic value at the wire boundary.

Parse a value at the wire boundary.

Types

t()

@type t() :: %CalCom.Json{
  kind: :scalar | :array | :object,
  value: String.t() | number() | boolean() | nil | [t()] | [{String.t(), t()}]
}

A dynamic JSON value without untyped object maps.

Functions

encode(json)

@spec encode(t()) :: term()

Serialize a typed dynamic value at the wire boundary.

parse(value)

@spec parse(term()) :: {:ok, t()} | :error

Parse a value at the wire boundary.