added json pretty print for data