Pudu programming language
Menu
API reference

Std.Json.Encode

1 declaration

trait

Encode

A type that writes itself as JSON.

Examples

type Point = { x: Int, y: Int } derives Json.Encode
Json.encode(&Point{x: 1, y: 2}.encode())  // "{\"x\":1,\"y\":2}"

Back to Std.JsonSearch related declarations