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)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b8ef46f46bc21baa3586ebb2f7f6c871582024a03b0a536ab34e5d4c89737c |
|
MD5 | 8b02798fa5325a77b15bcfc69b87aae9 |
|
BLAKE2b-256 | af83e808253b28df52cdaf8078476198b4884f250861a790f39fff1b0c368fe8 |