Skip to main content

project_json_to_expr_budgeted

Function project_json_to_expr_budgeted 

Source
pub fn project_json_to_expr_budgeted(
    value: &Value,
    _mode: JsonProjectionMode,
    codec: CodecId,
    budget: &mut DecodeBudget,
    depth: usize,
) -> Result<Expr>
Expand description

Budget-aware variant of project_json_to_expr.

Decodes through the untagged projection like project_json_to_expr but charges every produced node, collection length, and string length against budget, so a hostile provider response cannot exhaust host resources. The mode is accepted for signature parity; every decode mode shares the untagged decoder.