Specifying JSON —Tim Bray “I find myself tasked with polishing and publishing a little custom JSON-encoded language. It’s harder than it ought to be.”
www.tbray.org/ongoing/When/201x/2016/04/30/JSON-Schema-funnies
From the page
Saved with the link. Notes from 2007 to 2016 are mostly the page's own words, so this is probably an excerpt.
If it looks like a document, use XML. If it looks like an object, use JSON. It’s that simple. The essential difference isn’t simplicity/complexity or compact/verbose or typed/text, it’s ordered-by-default or not