How to parse JSON?

I want to create a countdown system in my app. I want to fetch time from server so that no one can hack it. I visited and opened the API in JSON. Can anyone tell me how can I parse this JSON in my app?

Here is the API:


Change the blue marked string according to the json.


Thanks! I did that. But how can I set the time in the app now after parsing?

Save the current time fetched from the api and then save it to firebase for later use. When the user opens the app again then compare the stored date with current date.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.