Invoked when an internal representation should be sent out to the client
the internal value to be serialized
the external representation that will be converted to JSON
Invoked when an internal representation should be sent out to the client