Added check for single JSON response.