Fix payload type extension json or xml