Function json_value_to_expression
Source pub fn json_value_to_expression<'a>(
value: &Value,
builder: AstBuilder<'a>,
) -> Expression<'a>
Expand description
Converts a serde_json::Value to an oxc Expression.
This is useful when you need just the expression without wrapping it in a program.
§Arguments
value - The JSON value to convert
builder - The AST builder to use for node creation
§Returns
An Expression representing the JSON value