How to solve JSON Syntax error. How to get response?
<p>This is the UPS shipping webservices API. I am getting this error :</p>

<blockquote>
  <p>{"Error":{"Code":"4","Description":"JSON Syntax error"}}</p>
</blockquote>

<p><strong>AJAX Code:</strong>  </p>

<pre><code>  &lt;script&gt;          
        var formData = { "UPSSecurity": { "UsernameToken": { "Username":"xxx.com", "Password":"xxxxx" }, "ServiceAccessToken": { "AccessLicenseNumber":"1234D567DF67" } }, "RateRequest": { "Request": { "RequestOption":"Rate", "TransactionReference": { "CustomerContext":"Test saran" } }, "Shipment": { "Shipper": { "Name":"Saravanan", "ShipperNumber":"Y72A41", "Address": { "AddressLine":["2311 York Rd"], "City":"Sebastopol", "StateProvinceCode":"CA", "PostalCode":"95473", "CountryCode":"US" } }, "ShipTo": { "Name":"ShipToName", "Address": { "AddressLine":["195 N main st"], "City":"Sebastopol", "StateProvinceCode":"CA", "PostalCode":"95472", "CountryCode":"US" } }, "ShipFrom": { "Name":"ShipFromName", "Address": { "AddressLine":"2311 York Rd", "City":"Sebastopol","StateProvinceCode":"CA", "PostalCode":"95473", "CountryCode":"US" } }, "Service": { "Code":"03", "Description":"Express" }, "Package": { "PackagingType": { "Code": "02", "Description": "Rate" }, "Dimensions": { "UnitOfMeasurement": { "Code": "IN", "Description": "inches" }, "Length": "7", "Width": "5", "Height": "2" }, "PackageWeight": { "UnitOfMeasurement": { "Code": "Lbs", "Description": "pounds" }, "Weight": "10" } }, "ShipmentRatingOptions": { "NegotiatedRatesIndicator": "" } } } };

        $.ajax({
            type       : "POST",
            url        : "https://wwwcie.ups.com/rest/Rate",
            crossDomain: true,
            timeout    : 240000,
            data       : formData,
            dataType   : 'json',
            success    : function(response) 
            {
                alert("result="+response);
            }  
        }); 

    &lt;/script&gt;
</code></pre>

<p>I don't know where I am wrong. But this request is running perfectly by "POST MAN" and "ARC" tools.
Please update answer.</p>