---
title: Create custom objects
slug: cms-12/docs/custom-object-creation
docTags: 
createdAt: 2026-08-10T15:55:53.000Z
---

When objects returned in search results are *deserialized*, the JSON.NET serializer instantiates them. If you require a custom action when instantiating the objects, customize the instantiation with the `client` conventions.

An example of configuring custom instantiation can look like this:

```csharp
//using EPiServer.Find.ClientConventions;

client.Conventions.ForType<BlogPost>()
    .CreateUsing(() => new BlogPost("someCtorParamValue"));
```

:::hint{type="info"}
**Note**
If indexed objects are so complex that they require custom instantiation, they are often not suitable as search results. It might be better to project the search results to another, simpler class using the `Select` method.
:::
