# Unexpected JSON event 'VALUE\_TRUE' instead of '\[KEY\_NAME, VALUE\_STRING\]' on 7.17.3

**URL:** <https://discuss.elastic.co/t/unexpected-json-event-value-true-instead-of-key-name-value-string-on-7-17-3/304398>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [May 11, 2022, 12:38am UTC](https://discuss.elastic.co/t/unexpected-json-event-value-true-instead-of-key-name-value-string-on-7-17-3/304398 "2022-05-11T00:38:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wxh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wxh/32/101057_2.png) [@wxh](https://discuss.elastic.co/u/wxh)\
**Post date:** [May 11, 2022, 12:38am UTC](https://discuss.elastic.co/t/unexpected-json-event-value-true-instead-of-key-name-value-string-on-7-17-3/304398/1 "2022-05-11T00:38:20Z")

</div>

Hello, Sylvain Wallez,

This is to follow up [[JAVA] Unexpected JSON event 'VALUE\_TRUE' instead of '[KEY\_NAME, VALUE\_STRING]' - #12 by swallez](https://discuss.elastic.co/t/java-unexpected-json-event-value-true-instead-of-key-name-value-string/295740/12) which was already closed.

Per [Serialize DynamicMapping values as booleans instead of string · Issue #139 · elastic/elasticsearch-java · GitHub](https://github.com/elastic/elasticsearch-java/issues/139), the issue should be fixed in 7.17.1

I recently got a chance to upgrade Elasticsearch from 7.16.3 to 7.17.3. However I am still seeing this error message following the steps described in the original link.

`Caused by: co.elastic.clients.json.JsonpMappingException: Error deserializing co.elastic.clients.elasticsearch._types.mapping.TypeMapping: co.elastic.clients.json.UnexpectedJsonEventException: Unexpected JSON event 'VALUE_TRUE' instead of '[KEY_NAME, VALUE_STRING]' (JSON path: index_templates[0].index_template.template.mappings.dynamic) (line no=1, column no=396, offset=-1)`

Can you confirm this is fixed in the version 7.17.3?

Thanks!

---

<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:** [June 8, 2022, 12:38am UTC](https://discuss.elastic.co/t/unexpected-json-event-value-true-instead-of-key-name-value-string-on-7-17-3/304398/2 "2022-06-08T00:38:37Z")

</div>

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