Compacting and printing pretty JSON