ahmadnassri/httpsnippet

View on GitHub
src/targets/javascript/jquery/fixtures/jsonObj-null-value.js

Summary

Maintainability
A
40 mins
Test Coverage
const settings = {
  async: true,
  crossDomain: true,
  url: 'http://mockbin.com/har',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{"foo":null}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});