Added new code for test the call to the JSON API.