Json formatted printing works