There is a json file of the form:
{ "kind": "youtube#playlistItemListResponse", "etag": "\"I_8xdZu766_FSaexEaDXTIfEWc0/sQScxznVlWgD1fXmkY5DK6q8la8\"", "nextPageToken": "CAkQAA", "prevPageToken": "CAYQAQ", "pageInfo": { "totalResults": 4348, "resultsPerPage": 3 },
but under certain circumstances this file may not contain one key / value pair and will look like:
{ "kind": "youtube#playlistItemListResponse", "etag": "\"I_8xdZu766_FSaexEaDXTIfEWc0/LDtQl6zDAmdnv2VvMnzfjox4-9w\"", "nextPageToken": "CAMQAA", "pageInfo": { "totalResults": 4348, "resultsPerPage": 3 },
Question: How do I know that JSONObject contains a pair of key "prevPageToken"?
Thank.