Why doesn't this produce anything?

console.log(JSON.stringify(function(){console.log('foobar');}));
Edit
Report