Skip to content
/ json2xml Public
forked from vinitkumar/json2xml

:neckbeard: Simple Python module to covert JSON to XML(Python 3.5+)

Notifications You must be signed in to change notification settings

llitz/json2xml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Build Status

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
from src.json2xml import Json2xml
data = Json2xml.fromjsonfile('examples/example.json').data
data_object = Json2xml(data)
data_object.json2xml() #xml output
  • From an URL
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

  • If you find any bug, open a new ticket
  • If you have an intresting Idea for contribution, open a ticket for that too and propose the idea. If we agree, you can open a pull request.

About

:neckbeard: Simple Python module to covert JSON to XML(Python 3.5+)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%