Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test for native JSON support #227

Closed
wants to merge 1 commit into from
Closed

test for native JSON support #227

wants to merge 1 commit into from

Conversation

mlc
Copy link

@mlc mlc commented Mar 23, 2011

here's a quick test for native JSON support, as is present in modern browsers. if it comes up false, you can load json2.js or whatever.

@betamos
Copy link

betamos commented Jun 28, 2011

Subscribing

@mgiulio
Copy link

mgiulio commented Aug 8, 2011

Me too.

@ryanseddon
Copy link
Member

Could you move it out of the core and into a separate file inside the feature-detects folder.

@szilardd
Copy link

The test fails for me in IE 7. This works:

!!window.JSON && !!window.JSON.parse

@paulirish paulirish closed this in 0fd6d5f Dec 4, 2011
patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this pull request Feb 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants