Write JSON at the top of Markdown and HTML files