finish JSON reponse