4 ms·
"Just remember to remove them"... in other words, don't use JSON. If you have to preprocess it with another program first, then you might as well use another fo
by MichaelGG 13y ago
"Just remember to remove them"... in other words, don't use JSON. If you have to preprocess it with another program first, then you might as well use another format anyways.
- reverius42 13y ago> If you have to preprocess it with another program first, then you might as well use another format anyways. What?? By that logic, you might as well hand-write x86 assembly, since C requires a "preprocessing" step (some might call that compilation). Using "JSON5" as a human-writable format for storage and then compiling it to real JSON before going over the wire seems like the best of both worlds to me. The wire format benefits are preserved, the format is validated as a side effect of compilation, and you get to write in a well-defined language with comments and bareword-identifiers. Your objection is that you don't want to run a compiler, so you'd rather send JSON5 over the wire?