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.2.0.tar.gz (1.8 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for fast-json-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a9b8ef46f46bc21baa3586ebb2f7f6c871582024a03b0a536ab34e5d4c89737c
MD5 8b02798fa5325a77b15bcfc69b87aae9
BLAKE2b-256 af83e808253b28df52cdaf8078476198b4884f250861a790f39fff1b0c368fe8

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