JSON-defined properties cannot be edited in the new Properties display without being converted to YAML syntax

The new Properties docs state that properties can be defined using JSON, however, some inconsistencies in the display of JSON-defined properties (arrays being rendered with their enclosing brackets) and the conversion to YAML seems like an unintended bug of the new properties core plugin. Would be great if this could get fixed, as I’m sure others like myself use JSON syntax for data validation/compatibility or nested data structures.

Many thanks for the awesome app and community!

Steps to reproduce

  1. Define file properties using JSON syntax in Source mode, e.g.
{
  "tags": "journal",
  "publish": false
}
  1. Switch to Live Preview or Reading mode.

  2. Edit the value of a property and save.

  3. Switch back to Source mode.

Did you follow the troubleshooting guide?

Y

Expected result

The frontmatter should be updated with the modification, but remain in JSON syntax.

Actual result

The frontmatter is converted to YAML syntax.

This is not a bug. You can write JSON but it will be rewritten in YAML on edit.

1 Like

Thanks for the reply and clarification! I’m assuming from the linked post that there aren’t any plans for added JSON support - oh well! May have to embrace the switch.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.