In T328605: Export TOCData in the action API we started exporting TOCData as an alternative to the old 'sections' legacy data.
The format we use for TOCData internally was tuned for writing parser tests, and so is pretty terse, omitting a lot of fields when they are redundant/unnecessary. We should document this -- and perhaps if it is *too* terse then create a more verbose serialization for the benefit of the action API.