Added cURL, check for valid JSON