NicolasPetton/amber — Issue #88: Infinite recursion when sending Dictionary on Ajax request per POST
Author: sebnozzi
Created: 2011-10-26 21:30:23+00:00
State: open

Sending a Dictionary as data per Ajax-POST using JQuery causes an infinite recursion.

My debugging pointed out that JQuery recurses infinitely when trying to somehow convert the dictionary (postData).
The same happens when postData is sent an #asJSONObject message.

If postData is a String it works, of course.

Code below:

```smalltalk
postData := #{	'filePath' -> 'NameOfCategory.js'.
'contents' -> '...GeneratedContentsOfCategory...' }.
options := #{
'type' -> 'POST'.
'data' -> postData.
'error' -> [window alert: 'Commit of JS failed!']
}.
jQuery
ajax: 'somePhpPage.php'
options: options.
```