I'm currently in search of a JSON polyfill to enable JSON support on older browsers for my JavaScript code. After some research, it seems like JSON2 and JSON3 are popular choices, with JSON3 being positioned as an upgrade over JSON2. However, I'm curious if there are better options available.
One issue I've encountered with JSON3 is that when I use the google closure lint checks on the library, it throws warnings about for loops not having defined bodies:
If this if/for/while really shouldn't have a body, use {}
Given the warnings from js-lint, I'm hesitant about using this polyfill. It raises concerns because when I compile my library, those warnings may make it seem like there are issues within my code since everything is packaged together for easier distribution.