added json printer