Skip to content

Instantly share code, notes, and snippets.

@raedatoui
Created March 15, 2012 15:13
Show Gist options
  • Save raedatoui/2044730 to your computer and use it in GitHub Desktop.
Save raedatoui/2044730 to your computer and use it in GitHub Desktop.
Expression Engine JSON output
[{exp:channel:categories channel="sections" style="linear"}
{"name":"{category_name}",
"thumb":"{category_image}",
"id":"{category_id}",
"image":"{image}",
"description":"{category_description}",
"pages":{exp:json:entries channel="sections" orderby="display_order" sort="asc" category="{category_id}"}},
{/exp:channel:categories}
{"id":"-1"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment