From 97bbe092a3c71760c0d039da39ab571676971801 Mon Sep 17 00:00:00 2001 From: nmg196 Date: Fri, 11 Jul 2014 11:07:16 +0100 Subject: [PATCH] Update README.md Add usage example to save hurried devs a couple few seconds of reading the source. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 0f2ae41..85db0ad 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,13 @@ 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: