# New Java API updateRequest as String

**URL:** <https://discuss.elastic.co/t/new-java-api-updaterequest-as-string/324783>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [February 6, 2023, 10:23am UTC](https://discuss.elastic.co/t/new-java-api-updaterequest-as-string/324783 "2023-02-06T10:23:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmermeister](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/schmermeister/32/116391_2.png) [@schmermeister](https://discuss.elastic.co/u/schmermeister)\
**Post date:** [February 6, 2023, 10:23am UTC](https://discuss.elastic.co/t/new-java-api-updaterequest-as-string/324783/1 "2023-02-06T10:23:22Z")

</div>

Is there a way with the new Java API to update a document as JSON-String?

Problem is, i have a Object which i want to update and this contains null value which must be serialized. By default jackson ignores null value to serialize, but ui need it.

An alternative could be to configure jackson which is used by Elastic Java API, but i don't know where to do it.

Any ideas?

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [February 6, 2023, 10:38am UTC](https://discuss.elastic.co/t/new-java-api-updaterequest-as-string/324783/2 "2023-02-06T10:38:10Z")

</div>

Hi André, just added the `language-clients` tag to ensure it gets picked up in the right channels.

---

<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:** [March 6, 2023, 10:38am UTC](https://discuss.elastic.co/t/new-java-api-updaterequest-as-string/324783/3 "2023-03-06T10:38:15Z")

</div>

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