Skip to main content

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")
    })
)

Release files for fast-json 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fast-json 0.3.2
File Size Uploaded
fast-json-0.3.2.tar.gz 1.9 kB Details

Release files / fast-json-0.3.2.tar.gz

Download URL fast-json-0.3.2.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a1e706410cdc1b7bcab14383cdab9e093d7ca872ff761927c162bd7fda83ad2f
BLAKE2b-256 checksum
How to use checksums
0f1eeafcfca27a76a767457623b095ca508f3e5a035c9a2649ad57f3f1dafa04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.20.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.3.2 This release

1 release file

0.3.1

1 release file

0.3.0

2 release files

0.2.1

2 release files

0.2.0

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page