Skip to content
This repository has been archived by the owner. It is now read-only.
[Discontinued] Use native JSON.stringify and JSON.parse instead, or json2.js from https://github.com/douglascrockford/JSON-js
Branch: master
Clone or download
Latest commit 2339804 Aug 19, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Release v2.6.0 Aug 19, 2016
src Release v2.6.0 Aug 19, 2016
test build: Update dev dependencies Apr 22, 2015
.gitignore Update build scripts (package.json, Grunt, Travis) May 23, 2014
.jscsrc build: Update dev dependencies Aug 19, 2016
.jshintignore Update build scripts (package.json, Grunt, Travis) May 23, 2014
.jshintrc Export the library as amd module Aug 19, 2016
.travis.yml Update build scripts (package.json, Grunt, Travis) May 23, 2014
Gruntfile.js
HISTORY.md Release v2.6.0 Aug 19, 2016
LICENSE.txt
README.md
package.json

README.md

Build Status npm

jQuery JSON

JSON plugin for jQuery, provides simple ways to convert to JSON and back again.

Usage

$.toJSON(myObject);
$.toJSON({ foo: 'bar' });

Development

To create the minified build, run this command from the root directory of the repository:

$ npm run build

Test

Open up ./test/index.html in your browser to run the test suite, or run it from the command line with Grunt:

$ npm install
$ npm test

For it to pass in modern browsers, you have to enable the disableNative option from the QUnit toolbar.

Also, before releasing. Make sure to test the minifed version as well, you can do so by enabling the distmin option in the QUnit toolbar. This will load the minified build from the ./dist/ directory instead of ./src/.

Versioning

We use the Semantic Versioning guidelines as much as possible.

Releases will be numbered in the following format:

<major>.<minor>.<patch>

For more information on SemVer, please visit http://semver.org/.

You can’t perform that action at this time.