Browse Source

Reflect the API changes in the README

Girish Ramakrishnan 8 years ago
parent
commit
952fa938de
1 changed files with 7 additions and 2 deletions
  1. 7 2
      README

+ 7 - 2
README

@@ -1,8 +1,13 @@
 This is a Qt JSON Parser and serializer.
 
 The API is trivial:
-    QVariant Json::parse(jsonString)
-    QByteArray Json::stringize(QVariant)
+    JsonReader reader;
+    reader.parse(jsonString);
+    QVariant v = reader.result();
+
+    JsonWriter writer;
+    writer.stringify(v);
+    QString json = writer.result();
 
 Compilation:
     The code uses QLALR (in Qt respository. $QTDIR/util/qlalr). Just,