Unsolved How to parse firebase GetUserData request's response?
-
This post is deleted! -
It is JSON data. Feed the response to QJSonDocument::fromJson()
-
This post is deleted! -
This is your input:
{ "kind": "identitytoolkit#GetAccountInfoResponse", "users": [ { "localId": "kcHDynpC5LgWCai2QtLSW4YhMxi2", "email": "example001@gmail.com", "passwordHash": "UkVEQUNURUQ=", "emailVerified": true, "passwordUpdatedAt": 1641311930551, "providerUserInfo": [ { "providerId": "password", "federatedId": "example001@gmail.com", "email": "example001@gmail.com", "rawId": "example001@gmail.com" } ], "validSince": "1641311930", "lastLoginAt": "1641441716184", "createdAt": "1641311930551", "lastRefreshAt": "2022-01-06T04:01:56.184Z" } ] }
There is no "emailVerified" key in the top-level hash. This key belongs to each of the (potentially many) entries in the "users" array.
-
This post is deleted! -
@HeerokNewbie said in How to parse firebase GetUserData request's response?:
Please correct this code 🙏
Too lazy to learn by yourself? "users" is an Array.