Dependency inject the serialization library
Accept whitelist of params to serialize
Tests around whitelisting params to be serialized