Add support for replacer function on JSON serialization

Straight pass-thru to the JSON.stringify used by the controller json method