While I wish JSON formally supported comments, it seems more sensible (compatible) to just nest them inside of a keyed list or object as strings. { foo: "bar", ans: 42, comments: { ans: "Douglas Adams" } }
If it's purely for machine consumption then I suspect you might be describing a schema and there are also tools for that.