Module son

Module son 

Source
Expand description

SON (Seq Object Notation) Serialization

Serializes Seq Values to SON format - a prefix/postfix notation compatible with Seq syntax. SON values can be evaluated in Seq to recreate the original data.

§Format Examples

  • Int: 42
  • Float: 3.14
  • Bool: true / false
  • String: "hello" (with proper escaping)
  • Symbol: :my-symbol
  • List: list-of 1 lv 2 lv 3 lv
  • Map: map-of "key" "value" kv
  • Variant: :Tag field1 field2 wrap-2

Structs§

SonConfig
Configuration for SON output formatting

Functions§

patch_seq_son_dump
son.dump: Serialize top of stack to SON string (compact) Stack effect: ( Value – String )
patch_seq_son_dump_pretty
son.dump-pretty: Serialize top of stack to SON string (pretty-printed) Stack effect: ( Value – String )
value_to_son
Format a Value to SON string