json_canvas

Functions

pub fn decode(
  from json_canvas: String,
) -> Result(Canvas, DecodeError)

Decode a JSON Canvas string representation into a Canvas value.

pub fn to_json(canvas: Canvas) -> Json

Convert a JSON Canvas value into a gleam/json’s Json value.

pub fn to_string(canvas: Canvas) -> String

Convert a JSON Canvas value into a string.

pub fn to_string_builder(canvas: Canvas) -> StringBuilder

Convert a JSON Canvas value into a string builder.

Search Document