added JSON pretty printing