Skip to main content

Module json

Module json 

Source
Expand description

Conversions between funct Value and serde_json::Value, for host protocols that cross thread/process boundaries as JSON (render frames, state snapshots, message-bus payloads).

Lossy by design in one direction only: JSON has no tuples/ranges/atoms, so converting to JSON fails loudly on values JSON cannot represent (closures, atoms, native handles, ranges) — never a silent drop. Tuples become arrays. Converting from JSON always succeeds.