It returned the same self executing function without the surrounding brackets... so I don't see the problem...
As a note, JSON doesn't support functions declared in it's content. You can use it, since it's still javascript code, but you cannot serialize it... etc.