A damned travesty we can't have #JSON5 for #Node or #npm config files. https://github.com/nodejs/node/issues/40714 & https://github.com/npm/feedback/discussions/56 - nobody dares be the prime mover. #JSON is just abysmal for anything humans need to work with.
Support for JSON5 · Issue #40714 · nodejs/node

Is your feature request related to a problem? Please describe. The lack of comments in package.json is clearly a big problem that the community faces (examples 1, 2, 3, 4). Currently the community ...

GitHub

wait... wait! are you telling me that #pnpm supports `package.json5` instead of `package.json`??? and I learn about it years later?

I've been praying for something like this for ages... and it turns out that we already had it.

#json #json5 #javascript

🌘 JSON5 – 人性化的 JSON
➤ JSON5:易於人們閱讀和編寫的 JSON 檔案格式
https://json5.org/
JSON5 是一種擴展流行的 JSON 檔案格式的工具,旨在更易於手動編寫和維護,並不適用於機器間通訊。它擴展了 ECMAScript 5.1 的語法,包括了一些產品。JSON5 解析和序列化的 JavaScript 庫是上述流行專案中的參考實現,同時也有其他平臺上的許多其他庫。
+ JSON5 真是一個很方便的工具,簡化了編寫和維護 JSON 檔案的過程。
+ 很棒的剖析和摘要!JSON5 的特性對於開發人員來說必定會有很大的幫助。
#JSON5
JSON5 – JSON for Humans

JSON for Humans

JSON5

Got friday vibes and hacked together a JSON5 implementation for jq! 🕺 💃

https://github.com/wader/json5.jq

#jq #json5 #json

GitHub - wader/json5.jq: JSON5 implementation for jq

JSON5 implementation for jq. Contribute to wader/json5.jq development by creating an account on GitHub.

GitHub
contemplating making a #JSON5 -> YAML transpiler just to never write any more YAML.
I'm not hating this #json #json5 #programming

@srob True. And there is a Dart package for it so perhaps I could use it instead of the built-in parser library...hmm...

#DartLang #json5

pub.dev/packages/json5

json5 | Dart Package

A lightweight library for encoding and decoding JSON5 with comments and trailing commas support.

Dart packages

So I noticed the lack of prominent #JSON5 parsers for C++, and made one of my own: https://github.com/mortie/json5cpp

The goal is to be simple, robust, and a very small dependency for projects which already use JsonCpp.

Thoughts?

#programming #cpp #json

GitHub - mortie/json5cpp: A JSON5 parser for C++ built on JsonCpp.

A JSON5 parser for C++ built on JsonCpp. Contribute to mortie/json5cpp development by creating an account on GitHub.

GitHub

@slightlyoff I use #JSON5 in a Chrome Extension I own solely to comment the manifest and it works great.

I do think the bigger issue is that JSON is a terrible configuration language (but great wire format!). We should be using #TOML, #YAML, or something else more targeted for that use case.