Hacker News new | ask | show | jobs
by pulsarmx 556 days ago
How is abusing comments any different than abusing a top-level property with a key like “__comment”?
1 comments

at least a top-level metadata property can be explicitly defined in a .json.schema[0] and formalized, rather than being some kind of ad-hoc pre-processor step you have to evaluate before actually using the JSON data. I didn't even know about that approach before I read your comment but it instantly makes more sense to me in terms of maintainability and interoperability.

[0] https://json-schema.org/