From 9ee6f091e9e1790a7fb8c2b02fc0c9a53cf3f707 Mon Sep 17 00:00:00 2001 From: Eeli Reilin Date: Wed, 3 Jul 2013 12:19:30 +0300 Subject: [PATCH] Update README.md --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8389e89..2381e52 100644 --- a/README.md +++ b/README.md @@ -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) { @@ -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]: @@ -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.