Category JSON Example

A common tree node for navigation and product catalogs.

Example

{
  "id": 7,
  "name": "Developer Tools",
  "slug": "developer-tools",
  "parentId": null,
  "children": [
    {"id": 8, "name": "JSON", "slug": "json"}
  ]
}

Explanation

Use children arrays to build nested category trees.