fix payload json conversion