Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. JavaScript
  3. json3

json3

NOASSERTIONJavaScript

A JSON polyfill for older JavaScript platforms, providing spec-compliant parse and stringify functions.

Visit WebsiteGitHubGitHub
1.0k stars149 forks0 contributors

What is json3?

JSON 3 is a deprecated JavaScript library that provided a polyfill for the JSON object in older environments lacking native support. It implemented the `JSON.parse()` and `JSON.stringify()` methods according to the ECMAScript specification, ensuring consistent JSON handling across different platforms and fixing date serialization issues present in some native implementations.

Target Audience

Developers maintaining legacy web applications or JavaScript projects that need to run on older browsers or environments without native JSON support, such as Internet Explorer 6-7 or early versions of Node.js.

Value Proposition

It offered a reliable, spec-compliant alternative to native JSON with enhanced security through its recursive descent parser and corrected date serialization bugs, making it a trusted solution for cross-platform compatibility before native JSON became universally available.

Overview

A JSON polyfill. No longer maintained.

Use Cases

Best For

  • Adding JSON support to legacy web applications targeting Internet Explorer 6 or 7
  • Ensuring consistent JSON parsing and stringifying in older JavaScript engines like Rhino
  • Fixing date serialization bugs in environments with non-compliant native Date#toJSON implementations
  • Providing JSON functionality in CommonJS environments before native support was widespread
  • Maintaining compatibility in projects that must run on very old browsers without modern APIs
  • Using JSON in AMD/RequireJS module systems without conflicts

Not Ideal For

  • New projects targeting modern browsers or Node.js (v12+), where native JSON is fully supported
  • Applications requiring active maintenance, security updates, or community support
  • High-performance systems where parsing speed is critical, due to its slower recursive descent parser
  • Projects relying on ECMAScript 6+ features beyond JSON, as it only implements older specifications

Pros & Cons

Pros

Spec-Compliant Reliability

Implements JSON.parse() and JSON.stringify() strictly according to the ECMAScript specification, ensuring consistent behavior across diverse environments as highlighted in the README.

Security-Focused Parser

Uses a recursive descent parser instead of eval, enhancing security on older platforms vulnerable to injection attacks, a key feature noted in the project description.

Date Serialization Fix

Correctly serializes dates to simplified ISO 8601 strings, overriding buggy native Date#toJSON() implementations, which is explicitly addressed in the README's date serialization section.

Broad Cross-Platform Support

Works in web browsers back to IE6, CommonJS environments like Node.js 0.6.21+, and JavaScript engines such as Rhino, as documented in the compatibility list.

Cons

Deprecated and Unmaintained

The project is officially deprecated with no maintenance, meaning no bug fixes, security patches, or updates, as warned in the prominent banner at the top of the README.

Slower Performance

Admits to being slower on older platforms compared to JSON 2 due to its recursive descent parser, which can impact performance-critical applications.

Limited Modern Relevance

With native JSON now universally available in modern environments, its utility is confined to legacy systems, making it irrelevant for new development.

Integration Complexity

Requires careful handling with AMD loaders to avoid conflicts, and the noConflict() method is needed to restore global objects, adding setup overhead.

Frequently Asked Questions

Quick Stats

Stars1,021
Forks149
Contributors0
Open Issues16
Last commit7 years ago
CreatedSince 2012

Tags

#commonjs#amd#legacy-browser-support#javascript-library#cross-platform#web-development

Built With

J
JavaScript

Links & Resources

Website

Included in

JavaScript34.9kPonyfills63
Auto-fetched 6 hours ago

Related Projects

A curated list of awesome lists - @sindresorhusA curated list of awesome lists - @sindresorhus

😎 Awesome lists about all kinds of interesting topics

Stars459,999
Forks34,529
Last commit9 days ago
javascript-algorithmsjavascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

Stars195,897
Forks31,090
Last commit2 months ago
You Don't Know JSYou Don't Know JS

A book series (2 published editions) on the JS language.

Stars184,442
Forks33,582
Last commit2 months ago
Clean Code JavaScriptClean Code JavaScript

Clean Code concepts adapted for JavaScript

Stars94,300
Forks12,467
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub