tocjson
tocjson is a simple JSON-based format for representing the table of contents of a document or website. It aims to provide a structured and easily parsable way to define navigation hierarchies. A tocjson file typically consists of a JSON object where keys represent sections or pages, and values can be either further nested objects (for sub-sections) or a string containing the URL or path to that section.
The primary purpose of tocjson is to simplify the programmatic generation of navigation menus, sidebars, or
The format is designed to be human-readable and easy to edit, making it accessible to content creators