Encapsulating toJson in FuckOff class

I noticed that toPdf got refactored into the FuckOff class, any thoughts on encapsulating the other formats in the same way??  This pull request shows what toJson would look like.

Feel free to dismiss :)