I'm trying to write a jQuery function to send a query string to a PHP script, but I can't seem to get the text to get to the server in the correct format. I want to send this query string (with the appropriate URL encoding):

```
data={"name":"Chris"}

```

where 'data' is always a JSON string. Using jQuery's `.ajax` function I tried setting my data variable to

```
data: { 'data': {"name":"chris"} },

```

but PHP ends up getting:

```
data[name]=chris

```

What's the proper way to send the data back to the server so that the JSON string is properly reserved, without having to hand-craft the string?