Closed datlechin closed 2 years ago
It seems like GitHub preview doesn't support it though.
Neither does Docusaurus (Prism.js). Instead we have to use JSON, it seems, rather than JSONC.
We could use json5 (supports comments)
jsonc
is not supported.
jsonc
is not supported.
As Matt suggested, let's use json5
instead of json
. Also, are there other parts of the code that need to be changed?
Using json5
would be incorrect, as it allows trailing commas while very few of our json
or jsonc
files actually support this. The notable exception is tsconfig.json
which is a JSON5 file.
This PR was superseded by #388, but as you brought the issue to our attention, I've made sure to mark this as accepted.
Thank you for you contribution!
What's the reason for the change? I assume
jsonc
was used specifically to support JSON with comments. It seems like GitHub preview doesn't support it though.