Serializationedit

By default, the .NET client for Elasticsearch uses the Microsoft System.Text.Json library for serialization. The client understands how to serialize and deserialize the request and response types correctly. It also handles (de)serialization of user POCO types representing documents read or written to Elasticsearch.

The client has two distinct serialization responsibilities - serialization of the types owned by the Elastic.Clients.Elasticsearch library and serialization of source documents, modeled in application code. The first responsibility is entirely internal; the second is configurable.