title: How send JSON data on $.post() | jQuery
body: <p>I tried in 2 ways:</p>
  
  <p>saving the json on a var</p>
  
  <pre><code>var dataLog = JSON.stringify( {
    "clientId": "1",
    "sensor": "Temp",
    "dateStart": "2016-09-03 00:00:00",
    "dateEnd": "2016-09-03 00:59:59"
  } );
  
  $.post(data , {dataLog})
    .done(function( data ) {
    console.table(data);
  });
  </code></pre>
  
  <p>and adding the same json directly into the data parameter</p>
  
  <pre><code>$.post( url, {
    "clientId": "1",
    "sensor": "Temp",
    "dateStart": "2016-09-03 00:00:00",
    "dateEnd": "2016-09-03 00:59:59"
  })
    .done(function( data ) {
    console.log(data);
  });
  </code></pre>
  
  <p>but none of the 2 options works, it is possible or im doing something wrong?</p>