title: Why JsonNode.get("key").asText() is returning empty String
body: <p>I have a problem with saving to playersJson String, data from node &quot;players&quot;. Node is created based on json dataJson, created with byte[] playesFile. I suspect that the error is due to incorrect parsing of these strings?</p>
  <p>As a result, String playersJson returns an empty String and I would like it to contain information about &quot;players&quot; in json format, which I will then throw into Map&lt;String,Player&gt;</p>
  <p>Code fragment:</p>
  <pre><code>            byte[] playersFile = storageService.downloadFile(FILENAME);
              String dataJson = new String(playersFile);
  
              try {
                  JsonNode jsonNode = objectMapper.readTree(dataJson);
                  String playersJson = jsonNode.get(&quot;players&quot;).asText();
                  data = objectMapper.readValue(playersJson, new TypeReference&lt;Map&lt;String, Player&gt;&gt;(){});
              } catch (JsonProcessingException e) {
                  e.printStackTrace();
              }
  </code></pre>
  <p>String dataJson:</p>
  <pre><code>{
  &quot;players&quot;:
   [
    {
      &quot;key&quot;: &quot;03a2452c-9d6b-47f5-9616-9a6833312762&quot;,
      &quot;value&quot;: {
                &quot;uuid&quot;: &quot;2ae8d022-e0f4-4502-8e0e-1874997543e3&quot;,
                &quot;name&quot;: &quot;Artur&quot;,
                &quot;elo&quot;: 2000,
                &quot;gamesPlayed&quot;: 0,
                &quot;email&quot;: &quot;arti123i@mail.com&quot;
                }
    },
    {
      &quot;key&quot;: &quot;8526db7c-6930-45bf-9ae1-fb93e97ff4ba&quot;,
      &quot;value&quot;: {
               &quot;uuid&quot;: &quot;1bb43d73-3f94-40fc-a680-99f4a9304001&quot;,
               &quot;name&quot;: &quot;Kamil&quot;,
               &quot;elo&quot;: 2000,
               &quot;gamesPlayed&quot;: 0,
               &quot;email&quot;: &quot;kamil223@mail.com&quot;
               }
   },
   {
      &quot;key&quot;: &quot;5a65ba8c-2180-464b-afe4-69c29b785282&quot;,
      &quot;value&quot;: {
               &quot;uuid&quot;: &quot;b3dc8c98-5759-433e-88cd-0233946b9241&quot;,
               &quot;name&quot;: &quot;Marek&quot;,
               &quot;elo&quot;: 3000,
               &quot;gamesPlayed&quot;: 0,
               &quot;email&quot;: &quot;marek111@mail.com&quot;
               }
   }
  ],
  &quot;games&quot;:
    [
     {
      &quot;reportedTime&quot;: &quot;2022-07-11T14:43:10.0354202+02:00&quot;,
      &quot;reportedBy&quot;: {
        &quot;uuid&quot;: &quot;2ae8d022-e0f4-4502-8e0e-1874997543e3&quot;,
        &quot;name&quot;: &quot;Artur&quot;,
        &quot;elo&quot;: 2016,
        &quot;gamesPlayed&quot;: 1,
        &quot;email&quot;: &quot;arti123i@mail.com&quot;
      },
      &quot;result&quot;: [
        [
          {
            &quot;player&quot;: {
              &quot;uuid&quot;: &quot;2ae8d022-e0f4-4502-8e0e-1874997543e3&quot;,
              &quot;name&quot;: &quot;Artur&quot;,
              &quot;elo&quot;: 2016,
              &quot;gamesPlayed&quot;: 1,
              &quot;email&quot;: &quot;arti123i@mail.com&quot;
            },
            &quot;eloBefore&quot;: 2000,
            &quot;eloAfter&quot;: 2016
          },
          {
            &quot;player&quot;: {
              &quot;uuid&quot;: &quot;1bb43d73-3f94-40fc-a680-99f4a9304001&quot;,
              &quot;name&quot;: &quot;Kamil&quot;,
              &quot;elo&quot;: 2016,
              &quot;gamesPlayed&quot;: 1,
              &quot;email&quot;: &quot;kamil223@mail.com&quot;
            },
            &quot;eloBefore&quot;: 2000,
            &quot;eloAfter&quot;: 2016
          }
        ],
        [
          {
            &quot;player&quot;: {
              &quot;uuid&quot;: &quot;b3dc8c98-5759-433e-88cd-0233946b9241&quot;,
              &quot;name&quot;: &quot;Marek&quot;,
              &quot;elo&quot;: 2968,
              &quot;gamesPlayed&quot;: 1,
              &quot;email&quot;: &quot;marek111@mail.com&quot;
            },
            &quot;eloBefore&quot;: 3000,
            &quot;eloAfter&quot;: 2968
          }
        ]
      ]
     }
    ]
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/iL83W.png" rel="nofollow noreferrer">code image</a></p>
  <p><a href="https://i.stack.imgur.com/C8BTJ.png" rel="nofollow noreferrer">code debugging</a></p>