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.