How to serialize to JSON in Qt
Just to mention, as of Qt5, JSON is officially supported:
QVariant id(1), name("John Doe");QJsonObject json;json["Name"] = name.toString();json.insert("id", id.toInt());
Parsing JSON with QT using standard QT library.
BTW: why don't you want to use QJson? It nicely encapsulates all the QScriptValueIterator stuff, making your code easier to read.