I have a need to build the data string dynamically. This is not working, as it is just passing the param variable as a string.
var parameters = "{foo: 'test'}";
$.ajax({
url: 'test.php',
data: parameters,
type: 'get',
dataType: 'json
});
Any ideas?