xmlToJsonTs
v1.0.0
Published
Converts a xml string into JSON
Downloads
1,325
Maintainers
Readme
xmlToJsonTs
Parsing a XML string into JSON using Typescript.
Sample
import { XmlParser, IParserConfiguration } from 'xmlToJsonTs';
let config = <IParserConfiguration> { };
config.removeLineBreaks = true;
config.removeComments = true;
config.transformTextOnly = true;
let parser = new XmlParser();
let json = parser.toJson('<YourXmlString></YourXmlString>', config);
console.log(json);