jsonschema2popo

Converts a JSON Schema to a Plain Old Python Object class


Keywords
python, json-schema, code-generator
License
MIT
Install
pip install jsonschema2popo==0.12

Documentation

JSONSCHEMA2POPO

A converter to extract 'Plain Old Python Object' classes from JSON Schema files. Currenty compatible with python 3.4+

Installation

pip install jsonschema2popo

Usage

Basic:

jsonschema2popo -o /path/to/output_file.py /path/to/json_schema.json

object JSON encoding:

import json

g = GeneratedClass()
json.dumps(g.as_dict())