Adjusted JSON send method.