Created
April 30, 2012 17:36
-
-
Save casidiablo/2560334 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
JSONObject jsonObject = new JSONObject("{\"pop_up\":{\"message\":\"Download a FREE game!\",\"conversion_id\":\"4f9ecd02b23e5a00080000fa\",\"bid\":22,\"links\":[{\"rel\":\"clicks\",\"href\":\"https://www.revmob.com/api/v4/conversions/4f9ecd02b23e5a00080000fa/clicks.json\"}]}}"); | |
JSONObject popUp = jsonObject.getJSONObject("pop_up"); | |
JSONArray links = popUp.getJSONArray("links"); | |
JSONObject firstLink = links.getJSONObject(0); | |
String href = firstLink.getString("href"); | |
System.out.println("::::: PROFIT! "+href); | |
} catch (JSONException e) { | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment