Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Parsing JSON Object and assigning as class member?
ajmas last edited by
I am parsing a JSON document with QJsonDocument::fromJson() and need to assign the resulting value as a member of the class, such that it can be reference later on. What is the right way to do this, such that I don't create a segmentation fault?
I am very rusty with C++ and a newbie with Qt.
What part of the json would you like to get into your class ?