fix json dump in createTask