<commit_before>[![Build Status](https://travis-ci.org/Krinkle/jquery-json.svg?branch=master)](https://travis-ci.org/Krinkle/jquery-json)

# jQuery JSON

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

## Development

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

```bash
$ npm run build<commit_msg>readme: Add usage example for $.toJSON<commit_after>[![Build Status](https://travis-ci.org/Krinkle/jquery-json.svg?branch=master)](https://travis-ci.org/Krinkle/jquery-json)

# jQuery JSON

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

## Usage

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

## Development

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

```bash
$ npm run build
{'fraction_non_alphanumeric': 0.13033175355450238, 'fraction_numerical': 0.0, 'mean_word_length': 4.950704225352113, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4273485', 'n_tokens_mistral': 268, 'n_tokens_neox': 258, 'n_words': 86}