My objective is to get the primary links or any kind of menus items, to be shown as JSON, so that an app could consume it and show it.
I tried it using views and I have services module and views_datasource as well, but no success.
If there is no easy way then I am open to build a custom module as well.
Any suggestions?