Wrong serialization of the payload

Keep getting 'Invalid JSON input'.
This fixes the problem.