puts request in json format
added some comments