Refactor ConvertPo2Json func