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.
If you want it to be. In this case it just means that there was no text before at all.