title: How to post Json data with a key in angular js?
body: <p>I have to send json object as a value with a key.
  My Code:</p>
  
  <pre><code>var req = {
        method: 'POST',
        url: clientAdd_url,
        headers: {
          'Content-Type': 'application/json'
        },
        data: {Contact: $scope.clientinfo}
      }
  </code></pre>
  
  <p>Contact is a key and $scope.clientinfo is a json object. But it's not working.</p>
  
  <p>I checked in Postman, the format is like:</p>
  
  <pre><code>{
   Contact: {
  "BillingDetails": {
      "CompanyName": "Shangrila Handicraft Shop",
      "Address": "Kamaladi"
  },
  "ContactDetails": {
      "ContactName": "Shyam Shrestha",
      "ContactEmail": "shyam@gmail.com",
      "ContactPhone": 9808909090
  },
  "ShippingDetails": {
      "ShippingName": "Shangrila Handicraft Shop",
      "ShippingAddress": "Kamaladi"
  },
  "Notes": "Test from Postman"
  }
  </code></pre>
  
  <p>I would be grateful for your help.</p>