1.0.9 • Published 8 years ago

json-xml v1.0.9

Weekly downloads
36
License
MIT
Repository
github
Last release
8 years ago

json-xml

npm version

turn json to xml and xml to json

Install:

npm install json-xml

Usage Example:

const {toXml, toJson} = require('json-xml');
const json = {
    person: {
        name: {
            first: 'john',
            last: 'doe'
        }
    }
};
const xml = toXml(json);
const jsonAgain = toJson(xml);

Output - xml

<person>
<name>
<first>
john
</first>
<last>
doe
</last>
</name>
</person>

Output - json

{ person: { name: { first: 'john', last: 'doe' } } }
1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago