Expand description
JSON parse + stringify, mapping to the tatara-lisp Value tree.
(json-parse STR) → nested Value (null → nil, objects → alist) (json-stringify V) → string (alist-get ALIST KEY) → value at KEY, or nil (alist-get ALIST KEY DEFAULT) → value at KEY, or DEFAULT
Functions§
- install
- json_
to_ value - Convert a
serde_json::Valueinto a tatara-lispValue. Objects become association lists:((key . v) (key . v) ...)where each pair is a 2-element list for easy alist-get lookup. - value_
to_ json - Convert a tatara-lisp
Valueinto aserde_json::Valuefor serialization. Closures / native fns / foreign / quoted-sexp collapse tonull.