j2x
v1.0.1
Published
JSON to XML or XML to JSON
Readme
Install
$ npm i j2x -DImport
import j2x from "j2x"DEMO
import j2x from "j2x"
let jsonObj = {
someKey: 'example'
}
let xmlStr = j2x.json2xml(jsonObj)
xmlStr = `<someKey><![CDATA[example]]></someKey>` import j2x from "j2x"
let xmlStr = `<someKey><![CDATA[example]]></someKey>`
let jsonObj = j2x.xml2json(xmlStr)
jsonObj = {
someKey: 'example'
}