Adding a little hack to deal with int 0 and omitempty in the JSON payload.