Skip to main content

Combines best parts of json and ujson for fast serialization

Project description

Combines best parts of json and ujson for fast serialization.

import fast_json

print(
    fast_json.dumps({
        "foo": "bar",
         "now": datetime.datetime.now()
    })
)

Serializing custom type

import fast_json
from collections import namedtuple


MyType = namedtuple("MyType", ["name", "value"])


@fast_json.convert.register(MyType)
def _(value):
    return "name={0.name} value={0.value}".format(value)


print(
    fast_json.dumps({
        "one": MyType(name="foo", value="bar")
    })
)

Project details


Download files

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

Source Distribution

fast-json-0.3.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

fast_json-0.3.0-py2-none-any.whl (3.2 kB view details)

Uploaded Python 2

File details

Details for the file fast-json-0.3.0.tar.gz.

File metadata

  • Download URL: fast-json-0.3.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fast-json-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1ead785c0a5a1cac1ffb089dae75b8d2730fb218814f18f6fe6fea4845c4a0a1
MD5 64da2eb65abfe205ad0adc617faed8ea
BLAKE2b-256 5fb029d140e142353c3e36a1c50284ec7073963e9abb41330acde7a333be1364

See more details on using hashes here.

File details

Details for the file fast_json-0.3.0-py2-none-any.whl.

File metadata

File hashes

Hashes for fast_json-0.3.0-py2-none-any.whl
Algorithm Hash digest
SHA256 c7260eb295321a975310bc71de50b041b9146fa513c1cd1c3731b1a3e26ca4d0
MD5 76c29ef7224362a22b30fca837f35b54
BLAKE2b-256 42d78dedee79bd0f41aaa070eda43537ae0090a5ff9aad36f9322bfd01ea0855

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page