Sometimes I got an error message for Ajax request “JSON Parse Error” (I think) throwed by the jQuery library.
Upon closer examination I found that the structure of the PHP JSON result set was correct.
In the end it was the character set of the underlying PHP files.
To fix the parse error you have to set the same character set on all PHP files. In my case I decided to use UTF8 without BOM