skip to navigation
skip to content

json2xml 1.2.5

A simple python package to convert json to xml data

##About

[![Build Status](https://travis-ci.org/vinitkumar/json2xml.svg?branch=master)](https://travis-ci.org/vinitkumar/json2xml)

A Simple python utility to convert JSON to XML(Supports 3.5.x and 3.6.x). It can be used to convert a json file to xml or from an URL that returns json data.

### How to install

` pip3 install json2xml `

### Usage

#### Command Line

` python -m src.cli --file="examples/example.json" python -m src.cli --url="https://coderwall.com/vinitcool76.json" `

#### Inline in Code

  • From a file

`python from src.json2xml import Json2xml data = Json2xml.fromjsonfile('examples/example.json').data data_object = Json2xml(data) data_object.json2xml() #xml output `

  • From an URL

`python from src.json2xml import Json2xml data = Json2xml.fromurl('https://coderwall.com/vinitcool76.json').data data_object = Json2xml(data) data_object.json2xml() #xml output `

### Bugs, features

 
File Type Py Version Uploaded on Size
json2xml-1.2.5-py3-none-any.whl (md5) Python Wheel py3 2017-03-31 3KB
json2xml-1.2.5.tar.gz (md5) Source 2017-03-31 2KB