Modify sendJson() by removing string.h