Fix json case in EndpointController#deliver