test if response is valid JSON