Closed fanatid closed 8 years ago
Actually had it that way at some points, but thought having JSON.parse()
just to use JSON would be a bit too much. Do you think its worth it?
What do you mean? You don't need JSON.parse()
for requiring json file -- require('./units.json')
.
That's true, I am actually using it elsewhere. The only downside I think is the inability to have proper comments in JSON, otherwise it should be fine.
It will more readable and you don't need disable key spacing for standard in this case