generate_payload() generates Json by default