printing of json responses