Skip to content

wacumov/xml2json

 
 

Repository files navigation

xml2json

Status Swift 5.2 Swift Package Mac & Linux

A Swift wrapper for C++ library that converts XML to JSON.

Installation

Swift Package Manager

Swift Package Manager is a tool for managing the distribution of Swift code. Once you have your Swift package set up, adding xml2json as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/wacumov/xml2json", from: "0.0.1")
]

Usage

Just read contents of an XML file to a string and pass it to the converter.

import xml2json

let jsonString = XMLToJSON.convert(xmlString)

About

A Swift wrapper for C++ library that converts XML to JSON

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • C++ 83.8%
  • HTML 12.9%
  • C 2.8%
  • Other 0.5%