# NEST Client.SearchAsync\<T\>() automatically deserializes an object with a Null value

**URL:** <https://discuss.elastic.co/t/nest-client-searchasync-t-automatically-deserializes-an-object-with-a-null-value/290847>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [December 3, 2021, 6:57am UTC](https://discuss.elastic.co/t/nest-client-searchasync-t-automatically-deserializes-an-object-with-a-null-value/290847 "2021-12-03T06:57:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KhalidDu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khaliddu/32/97114_2.png) [@KhalidDu](https://discuss.elastic.co/u/KhalidDu)\
**Post date:** [December 3, 2021, 6:57am UTC](https://discuss.elastic.co/t/nest-client-searchasync-t-automatically-deserializes-an-object-with-a-null-value/290847/1 "2021-12-03T06:57:14Z")

</div>

When I'm in the Nest Client, I use `Client.SearchAsync<Entity >()` , Some fields in the result are Null, Entity is the Index structure that I inserted. When I use `Client.SearchAsync<object>()`, I don't want to use Object, which means I have to do one more serialization. Would you please tell me why

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 31, 2021, 6:57am UTC](https://discuss.elastic.co/t/nest-client-searchasync-t-automatically-deserializes-an-object-with-a-null-value/290847/2 "2021-12-31T06:57:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
