Why doesn't JSON support comments?

added by JavaScript Kicks
1/26/2023 12:24:40 PM

964 Views

Did you ever curse the JSON data format for not allowing comments and wondered what the heck? Yeah, same here. Surprisingly, JSON, in its initial spec, did allow comments, but comment support was removed for three reasons: People put parsing instructions into comments breaking portability across platforms and languages.


0 comments