fn collapse_children(unit: &mut Value)
Replaces every child list of unit (innerBlocks, modules, chapters, pages) with a count and the path to read it from.
unit
innerBlocks
modules
chapters
pages