Open thclark opened 2 years ago
Would this require us using pyjson5
? It's apparently is up to 6000 times slower than pyjson
.
Alternatively, we could write something (or use an existing solution) that will strip the comments before they're parsed by pyjson
.
Or, if this is just for examples, we could just include it in the docs in a code-block
.
I maintain pyjson5 (which is different from json5), and has the same or a better performance than the builtin json in many cases: https://pyjson5.readthedocs.io/en/latest/performance.html
Ah my mistake! Are those two links supposed to go to the same page? I drew my conclusion from the description on this page
Oops, I copied the wrong link. https://pypi.org/project/pyjson5/ is written in cython, so it's quite fast. https://pypi.org/project/json5/ is written in pure python, so it's quite slow.
Cool cool! I think we can look at using pyjson5
then
Feature request
It would be useful to be able to comment the configuration files, is there any easy way of accepting JSON5, with its inbuilt comments?
Example comments in a
routine.json
file: