Check for valid JSON response