in Javascript, JSON

Watch your quotes when creating JSON files

In using my Glossary Plugin for Micro.blog, John Philpin has noticed that there are two types of double quotes, and that one of them does not produce a valid JSON file or object. There are double quotation marks (like on the keyboard next to the Enter key on my laptop) and double prime marks (think six minutes and 37 seconds 6’37”). If the wrong type of quotes are used, Micro.blog will not render a post using the plugin. A way to check this is to paste your JSON object into a site like JSONLint, which parses the text and can provide feedback on errors (source code for the app available here). Finally more technical info on JSON is available at JSON.org.

Write a Comment

Comment

  1. Andy thanks for the mention in your post – not sure why it didn’t make it into my list of mentions – stumbled on it my accident as I was trying to find something else in the timeline … I was also searching so hard – that I even came across this. I thought the timeline was infinite?

    // @help @AndySylvester