Skip to main content

shrink

Function shrink 

Source
fn shrink(v: &mut Value, budget: usize, skip: &[&str])
Expand description

Reduce v until size(v, skip) <= budget: arrays cut at element boundaries, then the longest strings shortened, then (last resort, so the bound always holds) object entries dropped.