🔍

Plugin serde

Functions for serialization and deserialization

Content

Function Description / comments
ser[<format>;<ATS>] Return serialized AST
de[<format>;<string> | <vector bytes>] Return deserialized data

Examples:

o)load "serde";
o)d: `a`b!(1 2; 3 4);
o)sd: ser[`json; d]
"{\"a\":[1,2],\"b\":[3,4]}"
o)de[`json; sd]
a| 1 2
b| 3 4
o)de[`yaml; ser[`yaml; d]]
a| 1 2
b| 3 4
o)de[`toml; ser[`toml; d]]
a| 1 2
b| 3 4
o)
o)de[`fix; "8=FIX.4.4\x019=\x00\x01"]
8| "FIX.4.4"
9| "\x00"
o)de[`fix; 0x383d4649582e342e3201393d303330390133353d3801]
8 | "FIX.4.2"
9 | "0309"
35| "8"
o)