j2x
v1.0.1
Published
JSON to XML or XML to JSON
Downloads
12
Readme
Install
$ npm i j2x -D
Import
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'
}