TYPO3 Extension "headless_navigations" - Provides TypoScript definitions to enrich the EXT:headless page response with proper navigations
This extension adds a "navigations" key to the default JSON response, provides constants to configure up to three custom navigations (e.g. "Main Navigation", "Meta navigation", "Side navigation") and outputs those as proper JSON to render menus in the Frontend applicaiton.
Extension requires TYPO3 in version at least 10.4.
Install extension using composer
composer require friendsoftypo3headless/headless-navigations
and then, include the TypoScript template, configure the constants and you are ready to go.