http serialize: ignore undefined values