When given an object, log() should write out its JSON source