added error message to getJson