pub fn apply_head(data: Value, n: usize) -> Value
Truncate JSON arrays to first N elements; pass through other values.