4 ms·
Obligatory: https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaGSr https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaG...
by streblo 11y ago
Obligatory: https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaGSr https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaG...
- cwyers 11y ago> Suppose you are using JSON to keep configuration files, which you would like to annotate. Go ahead and insert all the comments you like. Then pipe it through JSMin before handing it to your JSON parser. And now you can't roundtrip the comments if for some reason your JSON parser needs to change something.
- dclowd9901 11y agoI would prefer not to inspect json for comments. Something is ambiguous, you should have a model definition sent along with everything else.