Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Cool! JSON5 looks intriguing.

The core project implements a JavaScript module [1] but it looks like there are also experimental JSON5 libraries for Go [2], Python [3], Ruby [4], and Rust [5].

[1]: https://www.npmjs.com/package/json5

[2]: https://github.com/yosuke-furukawa/json5

[3]: https://pypi.org/project/json5/

[4]: https://github.com/bartoszkopinski/json5

[5]: https://docs.rs/json5/

I noticed that JSON5 doesn’t include a Date type. There have been discussions about this in both the JavaScript [6] and spec [7] repos but with no resolution yet.

[6]: https://github.com/json5/json5/issues/3

[7]: https://github.com/json5/json5-spec/issues/4



What would really help JSON5 take off is if it gets bundled with browsers by default. For now it doesn’t seem all that appealing to add

  <script src="//unpkg.com/json5/dist/index.min.js"></script>
to every HTML page as extra JavaScript instead of a native browser implementation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: