fishdan Jsonmaker provides hierarchical link trees for WordPress pages: drop in the [jsonmaker] shortcode, manage nested URLs inline, and expose any node as live JSON.
- Editable on the page – admins get inline “Add”, “Edit”, and “Delete” controls right beside each node.
- Slugged JSON endpoints – visit
/json/<node-slug>.jsonto retrieve that branch of the tree; perfect for toolbars or dashboards. - Flexible values – store either a URL or plain text; empty values create container nodes.
- Role-based capability – grants a dedicated
jsonmaker_managecapability to administrators (extendable to custom roles). - Single-option storage – the entire tree persists in
jsonmaker_tree, avoiding extra tables or posts.
- Copy the
fishdan-jsonmakerfolder into your WordPresswp-content/pluginsdirectory, or upload the ZIP via Plugins → Add New → Upload Plugin. - Activate fishdan Jsonmaker under Plugins → Installed Plugins.
- (Optional) Visit Settings → Permalinks and click Save to flush rewrite rules if
/json/<slug>.json404s.
- Insert the shortcode
[jsonmaker]into any page or post. - View the page while logged in as an administrator.
- Use the Add Node buttons to create child nodes. Titles must be unique; values are optional (leave blank to create a container).
- Use Edit to rename a node (its slug + JSON endpoint update automatically).
- Use Delete to remove a leaf node. Nodes with children must be emptied first.
- Access any node’s data at
https://your-site.com/json/<slug>.json.
- Capability tweaks – hook into activation or
map_meta_capto grantjsonmaker_manageto additional roles. - Data shape – node arrays include
title,slug, optionalvalue, and optionalchildrenarrays. - Customization – override the inline styles by dequeuing them and enqueuing a custom stylesheet if desired.
- Freemius SDK – access the telemetry/licensing SDK via the
jsonmaker_fs()helper if you need to hook into its events.
php -l jsonmaker.php # Syntax checkTo exercise the JSON endpoint locally:
curl http://wpdev.local/json/fishdan.jsonReplace fishdan with the slug shown in the add/edit forms.
Questions or ideas? Email dan@fishdan.com.
MIT. See LICENSE for details.