"You can set a callback to format a specific object property when serializing."
Or
"When serializing, you can set a callback to format a specific object property."