Enhancement: Add JSON support #182

Closed
opened 2026-10-05 02:32:02 +02:00 by adam · 1 comment
Owner

Is your feature request related to a problem? Please describe.
Whilst TOML and YAML are supported it should also be able to use json as this is supported as an option in Hugo sites.

Describe the solution you'd like
Add JSON Support

Describe alternatives you've considered
I could use YAML/TOML but it is often much easier programattically amend JSON based FrontMatter outside of this extension.

Additional context
Add any other context or screenshots about the feature request here.

**Is your feature request related to a problem? Please describe.** Whilst TOML and YAML are supported it should also be able to use json as [this is supported as an option in Hugo sites.](https://gohugo.io/content-management/front-matter/#front-matter-formats) **Describe the solution you'd like** Add JSON Support **Describe alternatives you've considered** I could use YAML/TOML but it is often much easier programattically amend JSON based FrontMatter outside of this extension. **Additional context** Add any other context or screenshots about the feature request here. <!-- github-sync-id:1105023511 -->
adam closed this issue 2026-10-05 02:32:03 +02:00
Author
Owner

Thanks @kilasuit for the suggestion. As most use TOML or YAML, support for JSON was a low priority.

In the lastest beta, you'll be able to set the frontMatter.taxonomy.frontMatterType setting to JSON. Once you've done this, it knows to always parse your front matter as JSON.

Sample used for testing:

---
{
  "title": "Page title",
  "lastmod": "2022-01-16T18:46:47.691Z"
}
---

This is some test content.
Thanks @kilasuit for the suggestion. As most use TOML or YAML, support for JSON was a low priority. In the lastest beta, you'll be able to set the `frontMatter.taxonomy.frontMatterType` setting to `JSON`. Once you've done this, it knows to always parse your front matter as JSON. Sample used for testing: ```markdown --- { "title": "Page title", "lastmod": "2022-01-16T18:46:47.691Z" } --- This is some test content. ``` <!-- github-comment-id:1013930989 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#182