Changed how JSON data is requested from application.