Created
January 1, 2012 23:59
-
-
Save janisozaur/1548716 to your computer and use it in GitHub Desktop.
qjson test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QtCore/QCoreApplication> | |
#include <QJson/Parser> | |
#include <QVariant> | |
#include <QDebug> | |
using namespace QJson; | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); | |
Parser p; | |
QVariantMap v = p.parse(QString("{\"e\":\"u\"}").toAscii()).toMap(); | |
qDebug() << v["e"].toString(); | |
return a.exec(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment