added GET api to format the json output