Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

JSONifier

kjellconnellykjellconnelly6k downloads

JSON.stringify() or JSON.parse() highlighted text and copy to clipboard.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

All this plugin does is convert highlighted text via JSON.stringify(text) or JSON.parse(text).

How to use

  1. Highlight text you can to convert
  2. Use hotkey to parse selection (default Cmd+Alt+[) or stringify selection (default Cmd+Alt+[). You can update hotkeys if you'd like.
  3. Paste wherever you want. (Note, selection must be a valid JSON string to parse it. So if you're copying a JSON string, make sure you select the quotes around it as well).
Also useful to validate JSON

As you may know, JSON.parse() also throws an error if the string is not valid JSON. So if you're writing a JSON codeblock, or editing frontmatter in JSON format, you can use the JSON.parse() function to check your code.

Example

I'm using Obsidian.md to write markdown, but I'm a developer who needs to send my markdown as a string using JSON.

# My Website

Hello and welcome to *my website*. It's very cool. Here are 3 things you should know about me.

1. I like cats.
2. I like dogs.
3. ???
4. Profit!

So now we need to convert this into a JSON string, using this plugin. I highlight it and using the JSON.stringify() function. The result is copied to your clipboard, so paste it wherever. Now what will that string look like?

"# My Website\n\nHello and welcome to *my website*. It's very cool. Here are 3 things you should know about me.\n\n1. I like cats.\n2. I like dogs.\n3. ???\n4. Profit!"

Ok cool! But wait... I'm coming back to this project a week later and I want to edit my markdown file... but all I saved was my JSON string! Oh no!

alt text

Now what? Well, highlight the JSON string from above and use the JSON.parse() function. Now the result is copied to your clipboard as the original markdown. So paste it and edit it again.

63%
HealthFair
ReviewSatisfactory
About
Convert highlighted text into a JSON string or back into original text using JSON.stringify and JSON.parse. Copy results to the clipboard and validate JSON on the fly by parsing selections to catch invalid JSON.
JSONEditingFormatting
Details
Current version
1.0.1
Last updated
5 years ago
Created
5 years ago
Updates
1 release
Downloads
6k
Compatible with
Obsidian 0.9.12+
Platforms
Desktop, Mobile
Report bugRequest featureReport plugin
Author
kjellconnellykjellconnelly
github.com/KjellConnelly/obsidian-jsonifier.git
GitHubkjellconnelly
  1. Community
  2. Plugins
  3. JSON
  4. JSONifier

Related plugins

Easy Typing

Auto format when typing.

List Callouts

Create simple callouts in lists.

Symbols Prettifier

Prettify the symbols with actual symbols you commonly type, like arrows.

Smart Typography

Convert quotes to curly quotes, dashes to em dashes, and periods to ellipses.

Number Headings

Automatically number or re-number headings.

Markdownlint

Use markdownlint to make the contents of your files more consistent.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Outliner

Work with your lists like in Workflowy or Roam Research.

Various Complements

Complete words similar to auto-completion in an IDE.