Skip to content

Instantly share code, notes, and snippets.

@Daniel-Walsh
Last active October 5, 2021 01:11
Show Gist options
  • Save Daniel-Walsh/523f7bf444edbdf7703b49f3eb061e43 to your computer and use it in GitHub Desktop.
Save Daniel-Walsh/523f7bf444edbdf7703b49f3eb061e43 to your computer and use it in GitHub Desktop.
Serving JSON content from Squiz Matrix #matrix #json

Serving JSON content from Squiz Matrix

In order for Squiz Matrix to properly set the content type of the server response, you must apply a specific design to the page outputting your JSON data.

Your design should contain only the following code:

<MySource_PRINT
  id_name="__global__"
  var="content_type"
  content_type="application/json"
/><MySource_AREA id_name="page_body" design_area="body" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment