5 ms·
A list of items in an array. Some items in that list are of particular note. (Say you have 15 items in an array. For whatever reason, such as you not being in
by damncabbage 10y ago
A list of items in an array. Some items in that list are of particular note.
(Say you have 15 items in an array. For whatever reason, such as you not being in control of the expected input structure of whatever you're giving this JSON to, you have them grouped with comments at the top of each block.)
- mSparks 10y agoWhy would you want to do that in what is basically a human readable binary file and not in a readme? You seemed to stop at the for who and for what purpose. I can 'just' about see the case in something like nodeJS package.json files (that is the least of nodeJS's problems, but that's a whole other conversation). But a readme is a so much better option than having to troll through code comments.
- inimino 10y agoThe discussion above concerns why JSON isn't a good choice for configuration files. That's exactly because configuration files are not human readable binary files.
- mSparks 10y agoTBH. I find package.json files to be much much much much nicer files than configure.sh or settings.txt files, even a configure.py. And if that isn't the case for you, not like you don't have the choice.