Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 6604790

Browse files
nmg196Krinkle
authored andcommitted
readme: Add usage example for $.toJSON
Add usage example to save hurried devs a couple few seconds of reading the source.
1 parent db1f62f commit 6604790

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

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

7+
## Usage
8+
9+
```js
10+
$.toJSON(myObject);
11+
$.toJSON({ foo: 'bar' });
12+
```
13+
714
## Development
815

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

0 commit comments

Comments
 (0)