Skip to content

bomi-yun/xml-to-json

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xmltojson

The utility to convert xml to json an vice versa.

Usage

var json = xmlToJson("<a/>");

// {
//   "a": {
//     "-self-closing": "true"
//   },
//   "#omit-xml-declaration": "yes"
// }

var xml = jsonToXml("{}");

// <?xml version="1.0" encoding="UTF-8"?>
// <root></root>

About

Xml to json javascript library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published