deleted print statements in callRestAPIForJson