# Convert XML Array into Json format

**URL:** <https://community.postman.com/t/convert-xml-array-into-json-format/61711>\
**Category:** Help Hub\
**Tags:** variables\
**Created:** [May 31, 2024, 3:38pm UTC](https://community.postman.com/t/convert-xml-array-into-json-format/61711 "2024-05-31T15:38:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshuaferrer](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@joshuaferrer](https://community.postman.com/u/joshuaferrer)\
**Post date:** [May 31, 2024, 3:38pm UTC](https://community.postman.com/t/convert-xml-array-into-json-format/61711/1 "2024-05-31T15:38:39Z")

</div>

I am new to Postman, I want to convert my XML Array into Json format. Is this possible?

```auto
<?xml version="1.0" encoding="UTF-8"?>
<supplier-information type="array">
    <supplier-information>
        <supplier-id type="integer">1</supplier-id>
        <name>Appical B.V.</name>
        <supplier-number>1000000</supplier-number>
        <intl-tax-num nil="true"/>
    </supplier-information>
    <supplier-information>
        <supplier-id type="integer">2</supplier-id>
        <name>Buy It Direct</name>
        <supplier-number>100200</supplier-number>
        <intl-tax-num>00</intl-tax-num>
    </supplier-information>
</supplier-information>

```

The XML array contains 50 Data sets.

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [May 31, 2024, 6:55pm UTC](https://community.postman.com/t/convert-xml-array-into-json-format/61711/2 "2024-05-31T18:55:01Z")

</div>

xml2js is available in the Sandbox.

Have a look at this topic for more information and examples.

> [@Occational warning that xml2Json is deptrecated](https://community.postman.com/t/occational-warning-that-xml2json-is-deptrecated/59745):
>
> We have been using xml2Json for a while. As of this week, we are getting ‘occasional’ console errors stating it has been deprecated and to use ‘require(‘xml2js’)’ instead. On doing this, the format that is created is not as we had before - I am sure there is something really simple we are missing This is from xml2Json [image] This is from xml2js [image] We obviously would like it to have remained the same so our tests do not need rework. Any assistance is appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [June 30, 2024, 6:55pm UTC](https://community.postman.com/t/convert-xml-array-into-json-format/61711/3 "2024-06-30T18:55:52Z")

</div>

Closed on June 30, 2024, 6:55pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
