Established connection and retrieving json data into a String