Qt JSON – query from subitems Qt JSON – query from subitems json json

Qt JSON – query from subitems


I guess it's because s_a is not a string value but an Int one.

This should work:

int value = jsonfile            .object()            .value("user")            .toObject()            .value("set")            .toObject()            .value("s_a")            .toInt();