Cast toJson to string in case it returns false, fixes #878
Cast toJson to string in case it returns false, fixes #878

Seldaek/monolog,gencer/monolog,pomaxa/monolog,lyrixx/monolog,thiagotalma/monolog,localheinz/monolog