Opens http connection to get JSON. Added internet permission