Page MenuHomePhabricator

Export TOCData via action API
Open, Needs TriagePublic

Description

The old 'sections' information in the action API is in a legacy format that has a number of representation quirks -- in addition to ad-hoc uses of false and empty string and etc instead of null, there's also T319141: byteoffset field in action=parse results is misnamed.

The action API should be updated to include a 'tocData' property which contains the "modern" json serialization of the TOCData object (T327439: Use JsonCodec serialization for TOCData), which will also fix the naming of 'old' fields like 'byteoffset'.