Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeli Reilin committed Jul 3, 2013
1 parent 30a131a commit 9ee6f09
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Expand Up @@ -27,9 +27,10 @@ QString of JSON data:
We would first call the parse-function:

```cpp
//Say that we're using the QtJson namespace
#include "json.h"

bool ok;
//json is a QString containing the JSON data
// json is a QString containing the JSON data
QtJson::JsonObject result = QtJson::parse(json, ok).toMap();

if(!ok) {
Expand Down Expand Up @@ -62,7 +63,6 @@ The previous code would print out the following:
length: 3
use_space: true

---

#### Serializing JSON ####
To write JSON data from Qt object is as simple as creating and assigning data to a [QVariantMap/JsonObject][varmap]:
Expand Down Expand Up @@ -129,8 +129,6 @@ This way you create a nested structure:

If you continue this process recursively, you nest more levels into the JSON structure.

---

### 3. CONTRIBUTING ###

Send in a pull request and bug the maintainer until it gets merged and published.
Expand Down

0 comments on commit 9ee6f09

Please sign in to comment.