Configuring to use Utf8Json

var endpointConfiguration = new EndpointConfiguration("Samples.Serialization.Utf8Json");
endpointConfiguration.UseSerialization<Utf8JsonSerializer>();
// register the mutator so the the message on the wire is written
endpointConfiguration.RegisterMessageMutator(new MessageBodyWriter());