Chapter 3. Blog JSON editor

This is something completely unnecessary, still useful, and barely worth writing about. And it's giving Inception.
Here's what I did:
- I recently published this website, and the entire blog is nothing more than a single JSON file.
- Then I made a tool to create correctly formatted blog entries for that JSON file.
- I hosted the tool on that very same website.
- Now I wrote a blog post about the entire process, used that editor to format the post correctly, pasted that entry into the blog JSON file to publish this post on the aforementioned website.
Phew!
So there was a very specific non-problem that I had created and it just had to be solved. And this JSON editor is something that nobody else will ever find useful.
But for me, this simple editor is useful with these main functionalities:
- The post id and URL are automatically created based on the post title
- The current date
- The text editor supports basic markdown syntax. It also converts every line break into '\n' so the JSON file preserves them as well. And that's pretty much it
There's a live preview of the post and a JSON snippet that I can just copy and paste to avoid any extra work.