finish json reponse