Skip to main content

json_to_tree

Function json_to_tree 

Source
pub fn json_to_tree(
    codec: CodecId,
    value: &Value,
    budget: &mut DecodeBudget,
    depth: usize,
) -> Result<LocatedExprTree>
Expand description

Reads JSON back into a LocatedExprTree, recovering per-node origins from $located wrappers, under the decode budget and node depth limits.