Add serialize support to POST API