I've tried to provide a minimal test case :-p
If you remove add the following to a post, but remove the "x", the post will fail with:
"Error while saving content: SyntaxError: JSON.parse: unexpected character at line 2 column 1 of the JSON data"
function test(x) { }
David