c++jsonqtqtcoreqjsonobject

is there a method to check if a QJsonObject object contains specific attribute?


there is a QJsonObject

    {
        "a":"...",
        "b":"...",
        "c":"..."
    }

is there a method to check if this object contains "a"?


Solution

  • You have a few options, according to the documentation:

    All of this came directly from the Qt documentation - my favorite thing about Qt is their fantastic documentation, so I encourage you to make that your first stop when you have questions like these.