News for hackers. Stuff that matters.
Re:Ask HN: Do you use JSON Schema? Help us shape its future ... by avmich on Monday January 30, 2023 @08:15PM (#34589449)
The point is that JSON is a data structure, comment is rather unnatural there. It can be added to JSON though, just like an array could be wrapped in an object with a "comment" field. Usually array name serves as a crude comment. Literate programming isn't very popular.
Re:Ask HN: Do you use JSON Schema? Help us shape its future ... by wewtyflakes on Tuesday January 31, 2023 @12:23AM (#34591513)
This does not help if you are integrating against someone else's API.
Re:Ask HN: Do you use JSON Schema? Help us shape its future ... by dragonwriter on Thursday February 02, 2023 @02:24PM (#34631774)
> The point is that JSON is a data structure

JSON is not a data structure. JSON is a data language. A computer program is a data structure and doesn't need comments, a programming language is a format for a human to read, write, and interact with automated tooling, whoss content is a program, but for the human uses, comments are important.

Similarly for data languages.