Skip to main content

Module value

Module value 

Source
Expand description

Value ↔ serde_json::Value codec.

Single canonical implementation of the wire encoding for graph Values, previously duplicated between the HTTP query handler and the SSE stream handler. The JSON shape is the one the streaming handler already emitted (complete variant coverage; Vertex/Edge/Path are serialized through their own Serialize impls).

Functions§

from_json
Decode a serde_json::Value (query parameter binding) into a core Value.
to_json
Encode a core Value into its JSON wire representation.