Issue posting code fragment to forum

Not entirely sure this is the best place to post this, but its an issue I encountered trying to post a code fragment to the developer forum, and its quite possible it could hit other developers..

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