*Updated teh connections with method names after code review
*Updated the tests with better testing cases for the JSON.parse functionality