added better json pretty printing