I try to read a JSON obtained with CURL PHP from Ajax but it is null
Content
Using Curl php code (requesWebService.php) I consume a service and I have a Json response with the function json_decode (), when trying to bring this Json from my RN form with Ajax code the object is null and I need to access the JSON values. Will you have an example? Or something am I doing wrong in my code?
Version
Customer Portal 3.7.1Code Snippet
<script type="text/javascript"> document.querySelector('[name="Incident.Subject"]').addEventListener("change", function(){ if(this.value == 'test'){ $.ajax({ url:"http://mercantilseguros--tst.custhelp.com/cp/customer/development/views/pages/requesWebService.php", type: 'POST', contenttype: "Content-Type: application/json", datatype: 'jsonp', success: function(result){ alert(result); } }); } }); </script>
0