Code for retrieving JSON objects in CreatePinActivity.java.