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
Expressionfrom JSON, accepting known compatibility shapes used by SDK boundaries. - expression_
from_ value - Deserialize a single
Expressionfrom a JSON value. - expression_
to_ value - Serialize an
Expressionthrough serde JSON first so wrapper layers expose canonical JSON-compatible values instead of runtime-specific JS shapes. - expressions_
from_ str - Deserialize a list of
Expressionvalues from JSON, accepting known compatibility shapes used by SDK boundaries. - expressions_
from_ value - Deserialize a list of
Expressionvalues from a JSON value.