Nominate our 2022 Qt Champions!

Parsing JSON Object and assigning as class member?

  • 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.

  • Lifetime Qt Champion


    What part of the json would you like to get into your class ?

Log in to reply