I am trying to pass a jquery string to my cakephp controller but I keep getting an error saying json_decode expects a string but is passed an array.
Here is the code for
Are you sure the url you use is correct? If you are using CakePHP, then why don't you work with $this->request->data?
$this->request->data
Try to debug your code with
pr($_POST); exit;
or
pr($this->request); exit;
What do they say?