Feature/json formatting

Added a basic formatter. This was quick and dirty since Erik is writing one for the API that hopefully can be reused.
No, I think boolean is fine, I was just checking.