changed json response render to pretty-print