I am confused about using `data` objects in my AJAX submit.

Here's my submit AJAX script:

```
$.ajax({
  url:'/library/php/triggers.php',
  type:'POST',
  data:data,
  cache:false,
  dataType:'json',
  processData:false,
  contentType:false,
  success:function(result){console.log(result);}
});

```

This `data` works:

```
 var data=new FormData(this);
 data.append('hello','my friend');

```

But this `data` does not work:

```
var data={"hello":"my friend"};

```

Aren't these both JSON objects? What's the difference between these?

I also tried changing `contentType:false` to `contentType:'application/json'` without success.