Closed B-PRAVEEN closed 7 years ago
hi it's an "issue" in xml2js lib. Since version 0.2 every value inside a tag is returned as an array (explicitArray option). But fortunately you can disable that mode.
I'm going to create new version 3.0.1 with that mode disabled to maintain backward compatibility.
thnx
fixed in version 3.0.1.
In old version 1.8.0, I simply pass header in each request and the xml response is parsed to Josn object, but now it is no working properly.
headers: {"Content-Type": "application/json"},
I tried this code :
But the output is like this:
Every element is array, any solution?
In V1.8.0 Json parser work correctly.