3 ms·
In face of the downvotes, I should clarify that this isn't a decision at the API level! The API requires JSON, valid JSON, of course. The templates operate ag
by JoelSutherland 16y ago
In face of the downvotes, I should clarify that this isn't a decision at the API level! The API requires JSON, valid JSON, of course.
The templates operate against the API, delivering it valid JSON. Just like you can write an object literal in Javascript without quoted strings, you can in our templates as well.
The JS library uses JSON.stringify before sending it to the API.
The depth of my preference to omit quotes on keys when allowed extends no deeper than this blog post. I am sure Kris will regret having me format it for him.