updated tapi to pretty print json.