passing the json string to send the final location to the end user