title: Jackson Json: How to get multiple values with same name from json node java
body: <p>I have a Json String that looks like this:</p>
  
  <pre><code>{
   "generatedList1":{"myList":["1","2","3","4"]},
   "generatedList2":{"myList":["1","6","8","2"]},
   "generatedList3":{"myList":["1","12","3","11"]}
  }
  </code></pre>
  
  <p>I want to collect all the values that are there in all of <code>myList</code>
  i.e. <code>[1,2,3,4,6,8,11,12]</code></p>
  
  <p>I converted the string to <code>JsonNode</code> and then did <code>JsonNode.findValues("myList")</code> which returns <code>List&lt;JsonNode&gt;</code>.
  But when I try to convert each <code>JsonNode</code> to <code>String</code> I get double quotes and square brackets as part of the <code>String</code> and not just numbers.
  I can remove that from the <code>String</code> but it seems hacky.
  I am sure there has to be a direct way to do this.
  Any help will be highly appreciated.</p>