Dynamics 365 portals: Use liquid to return JSON or XML

Gem of an article from Colin Vermander