title: XML to JSON having an option for arrays with one element
body: <p>I use org.json to convert XML into JSON at a Java code:</p>
  
  <pre><code>JSONObject jSONObject = org.json.XML.toJSONObject(StringXML);
  </code></pre>
  
  <p>The problem with org.json libs are they don't accept array with one element, so I'm having trouble to read the JSON with jQuery's datatable. (No bracket around the element)</p>
  
  <p>So, I wanted to switch to Jackson since I found out the it has an option for it:</p>
  
  <pre><code>ObjectMapper mapper = new ObjectMapper()
          .enable(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY);
  </code></pre>
  
  <p>But, when I imported the latest libs (core: 2.2.3, dataformat-xml: 2.2.0), DeserializationFeature class is not available.</p>
  
  <p>Is there any way to convert XML string into JSON having an option for the arrays with one element?</p>