Skip to content

Instantly share code, notes, and snippets.

@janisozaur
Created January 1, 2012 23:59
Show Gist options
  • Save janisozaur/1548716 to your computer and use it in GitHub Desktop.
Save janisozaur/1548716 to your computer and use it in GitHub Desktop.
qjson test
#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