Skip to main content

Module ast_json

Module ast_json 

Source
Expand description

Compatibility helpers for Expression JSON accepted at public API boundaries.

The canonical AST representation is the serde JSON form of Expression. Some wrappers historically exposed JavaScript values that stringify unit variants such as Expression::Null as {}. These helpers repair that narrow compatibility shape while preserving errors for unknown AST forms.

Functionsยง

expression_from_str
Deserialize a single Expression from JSON, accepting known compatibility shapes used by SDK boundaries.
expression_from_value
Deserialize a single Expression from a JSON value.
expression_to_value
Serialize an Expression through serde JSON first so wrapper layers expose canonical JSON-compatible values instead of runtime-specific JS shapes.
expressions_from_str
Deserialize a list of Expression values from JSON, accepting known compatibility shapes used by SDK boundaries.
expressions_from_value
Deserialize a list of Expression values from a JSON value.