title: Unexpected JSON event 'VALUE_FALSE' instead of '[KEY_NAME, VALUE_STRING]' when calling client.indices().getTemplate()
body: <p>I am writing some code to manage ElasticSearch templates. When running the code snippet below I am getting</p>
  <pre><code>co.elastic.clients.json.UnexpectedJsonEventException: Unexpected JSON event 'VALUE_FALSE' instead of '[KEY_NAME, VALUE_STRING]'
  </code></pre>
  <p>(See <a href="https://discuss.elastic.co/t/java-unexpected-json-event-value-true-instead-of-key-name-value-string/295740" rel="nofollow noreferrer">https://discuss.elastic.co/t/java-unexpected-json-event-value-true-instead-of-key-name-value-string/295740</a> for full callstack - too long to paste here)</p>
  <p>Code</p>
  <pre class="lang-java prettyprint-override"><code>// simplified code for demo this issue, but does reproduce.
  private static stackoverflowIssue(ElasticsearchClient client) {
    GetIndexTemplateResponse r = client.indices().getIndexTemplate();
  }
  </code></pre>
  <p>ES info:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;name&quot; : &quot;1ec11a1cb3c9&quot;,
    &quot;cluster_name&quot; : &quot;docker-cluster&quot;,
    &quot;cluster_uuid&quot; : &quot;7e0zLYxmQsST0EllSlc_KA&quot;,
    &quot;version&quot; : {
      &quot;number&quot; : &quot;7.16.2&quot;,
      &quot;build_flavor&quot; : &quot;default&quot;,
      &quot;build_type&quot; : &quot;docker&quot;,
      &quot;build_hash&quot; : &quot;2b937c44140b6559905130a8650c64dbd0879cfb&quot;,
      &quot;build_date&quot; : &quot;2021-12-18T19:42:46.604893745Z&quot;,
      &quot;build_snapshot&quot; : false,
      &quot;lucene_version&quot; : &quot;8.10.1&quot;,
      &quot;minimum_wire_compatibility_version&quot; : &quot;6.8.0&quot;,
      &quot;minimum_index_compatibility_version&quot; : &quot;6.0.0-beta1&quot;
    },
    &quot;tagline&quot; : &quot;You Know, for Search&quot;
  }
  </code></pre>
  <p>ES dependency in <code>pom.xml</code></p>
  <pre class="lang-xml prettyprint-override"><code>        &lt;dependency&gt;
              &lt;groupId&gt;co.elastic.clients&lt;/groupId&gt;
              &lt;artifactId&gt;elasticsearch-java&lt;/artifactId&gt;
              &lt;version&gt;7.16.3&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;jakarta.json&lt;/groupId&gt;
              &lt;artifactId&gt;jakarta.json-api&lt;/artifactId&gt;
              &lt;version&gt;2.0.1&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  <p>Please help, thanks!</p>