Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Quickly add json serialization and deserialization to your python classes.

Project Description

Add JSON (de)serialization to your python objects

>>> from jsonweb import decode, encode

>>> @encode.to_object()
... @decode.from_object()
... class User(object):
...     def __init__(self, nick, email):
...         self.nick = nick
...         self.email = email

>>> json_str = encode.dumper(User("cool_user123", "cool_user123@example.com"))
>>> print json_str
{"nick": "cool_user123", "__type__": "User", "email": "cool_user123@example.com"}

>>> user = decode.loader(json_str)
>>> print user.nick
cool_user123
>>> print user
<User object at 0x10145e390>

Note

JsonWeb is still very much under development. Things will change.

See documentation

Release History

Release History

This version
History Node

0.8.2

History Node

0.8.1

History Node

0.8

History Node

0.7.1

History Node

0.7.0

History Node

0.6.6

History Node

0.6.5

History Node

0.6.4

History Node

0.6.3

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
JsonWeb-0.8.2.tar.gz (22.7 kB) Copy SHA256 Checksum SHA256 Source Dec 1, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting