4 ms·
Oh, just put an object key named "//" with your comment as the value, and change the software to ignore such keys! /sarcasm My rage over JSON not supporting co
by scintill76 9y ago
Oh, just put an object key named "//" with your comment as the value, and change the software to ignore such keys! /sarcasm
My rage over JSON not supporting comments grows every time I have to write some config file in it. Crockford tells you, "Go ahead and insert all the comments you like. Then pipe it through JSMin before handing it to your JSON parser."[0]... 99% of the usecases for JSON offer no way to insert a preprocessor into that pipe.
[0] https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaGSr https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaG...