JSON5 rough serializer and parser for Python 3 written in Cython.
Project description
This package is the same as pyjson5, but interprets True and False as booleans. For more information, see the source repository. https://github.com/Kijewski/pyjson5
A JSON5 serializer and parser library for Python 3 written in Cython.
Serializer
The serializer returns ASCII data that can safely be used in an HTML template. Apostrophes, ampersands, greater-than, and less-then signs are encoded as unicode escaped sequences. E.g. this snippet is safe for any and all input:
"<a onclick='alert(" + encode(data) + ")'>show message</a>"
Unless the input contains infinite or NaN values, the result will be valid JSON data.
Parser
All valid JSON5 1.0.0 and JSON data can be read, unless the nesting level is absurdly high.
Functions
You can find the full documentation online at https://pyjson5.readthedocs.io/en/latest/. Or simply call help(pyjson5x). :-)
The library supplies load(s) and dump(s) functions, so you can use it as a drop-in replacement for Python’s builtin json module, but you should use the functions encode_*() and decode_*() instead.
Compatibility
At least CPython 3.5 or a recent Pypy3 version is needed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pyjson5x-1.6.2-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 960983837821642b2a6df6d4761c315835dc4c65fad67c2fce3eb72fee8d9a90 |
|
MD5 | aa459aba6b368d562f2608d7387feec7 |
|
BLAKE2b-256 | 46fc57ff8630160a9df2bcafdf81db05e6461adbe1ff1742a3c2e29448a32679 |
Hashes for pyjson5x-1.6.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0b4dfda3d243215fd8eb44f25ef74336b287e1978a2394e254387dba5fe3727 |
|
MD5 | 2480881c291d6c52deb82862d1a2b9a3 |
|
BLAKE2b-256 | 0d0d40e21d3ba02c88363229d9d968ac56e55ab0a8cf627e651b1b58d8cfce7e |
Hashes for pyjson5x-1.6.2-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bc5bd73d0753fdb921214e22e057c5e9aa8a698d4fea3adf9a1b685c4851907 |
|
MD5 | e5ba6ba92e4928bd7ab5783906192f76 |
|
BLAKE2b-256 | fa712f37ceab9869b382c8b9d54ac39687323167174e3811e7e574c16a628225 |
Hashes for pyjson5x-1.6.2-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84ccd9ae23ca8d274ab301ede667e9b572ca2125ce3c9b11035067271e09afef |
|
MD5 | 8c9c89f5eb90972cfa86e609ca6ec54e |
|
BLAKE2b-256 | 263ff3d1a7f3eb9549896b362154e0072108a74e467e1972821182cfd5c784d2 |
Hashes for pyjson5x-1.6.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 722687240f69044f0908aa50ac3f8f71d9cfdb7cec1dd25274debe3a4a6b1f56 |
|
MD5 | 0524c6a4e91ed4822d059848ef410902 |
|
BLAKE2b-256 | b38c8ea9bd6f4139548f5c6d75effff77b41f7d0464521c0342debb358e95f04 |
Hashes for pyjson5x-1.6.2-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42d9eb798f26c1da390d2679c9beb3c0e535576310e191c8eb0d64a0f04306c9 |
|
MD5 | c2b916d7e0955d6ef956dc5c2e259a4a |
|
BLAKE2b-256 | 2def05e222515f2c6dd74f312abdacd186bf22812ea40d691c630ab0fef8387b |
Hashes for pyjson5x-1.6.2-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5db61d369e51799c1526980846f20e1fb0378b3c9ef963764b453348a50b8621 |
|
MD5 | fbae47d2680a0480a1874ad95eadc688 |
|
BLAKE2b-256 | d864758ef811763aa3d1bc1ef1b8160dfda4d3f50e145c9b25ce86e442b68ae7 |
Hashes for pyjson5x-1.6.2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 312c9ab77add1d10db406dfcbd609c9582860445daa99d5c6752bd89110f3b35 |
|
MD5 | 01ced4241457046685168cc6445f27e9 |
|
BLAKE2b-256 | 9c391c91b4eb5254046e1d8c1565acf8fb5743cb442966d09049e62cb6be2391 |
Hashes for pyjson5x-1.6.2-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2ccd576005f9e400e4da1be2fd6ac3051e79061b4e7351d1dbb6d66e21e95d5 |
|
MD5 | 6cf87926972f757e040a0ec3a9dc82e9 |
|
BLAKE2b-256 | 7a702fabd75d311b331932b984ecbae7076c7da9ba63ff7e33697862df0575ef |
Hashes for pyjson5x-1.6.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe190425a4320226e974a2ab0738f8b099213c538e3550e029e26572b67001c6 |
|
MD5 | 7931de2ebd841575cb0df85b5e4f6954 |
|
BLAKE2b-256 | 15c8dbd726a3325056d6c5f9f42edd827c5f9a50d795014cb6fb9951689037e2 |
Hashes for pyjson5x-1.6.2-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a11187cdc9367fb4906fd32aee7fa835f3ae07a049c93e6f2830b0450aad089f |
|
MD5 | ac820aa9b3d26e8c73ed2d04ff01ad4a |
|
BLAKE2b-256 | 4fda8629dcc0b07c786f4ffbb8b1b8f5514b114d729fcca3d460e4c6a52f9fd4 |
Hashes for pyjson5x-1.6.2-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6d8e23333974c26d9d6ce97f2643a82b5808a33fe05ccd5460c432e9086b32b |
|
MD5 | 14add808a3ebbe5f9f5f04937823040e |
|
BLAKE2b-256 | 54e64882082c9b748695e2cfae9e9d555ec14e41208e46fb503919a8f61b8eca |
Hashes for pyjson5x-1.6.2-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 235fa41e407aa49447d48a69f3f1369e1fabf1eade699d7bb985eac88bbc7ac4 |
|
MD5 | 0441909277c01b6556abed5e494c330b |
|
BLAKE2b-256 | d9e26c71875822983af62ce62bd6afed49c3a2e5b62b0a305cc0cbfa45bc4653 |
Hashes for pyjson5x-1.6.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc06071816437e3eaabaf1607d9931ddccc1ebd171c1452cfac571d6be34c9c6 |
|
MD5 | e764404c42b72cc4e6bf13303dba04dc |
|
BLAKE2b-256 | c35c5038013d12d8443f09f18e3f1f31d9eabc17cf7bb1827efe6ccfc500bfa7 |
Hashes for pyjson5x-1.6.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fabf4d330fa598561c6f6d18e142da6b1e59b275ecac8b68d1062660ea4b83aa |
|
MD5 | f59df10fad561e57504e97226e19d56e |
|
BLAKE2b-256 | 22fb02c6cd2ab44af8d52a46daec3c7c12cf83a074fb0ccb7dd3fb6c0f2e81dc |
Hashes for pyjson5x-1.6.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e5b967bd05cc5e841ed5005b400e5c8a7255f024a2a6aa522a4e1601f334633 |
|
MD5 | a512291441960035a256f835468db73a |
|
BLAKE2b-256 | 406af277665ddada95f7a5b9c7833e2812b627c3d38b15fffd1950d17c2a62cd |
Hashes for pyjson5x-1.6.2-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd3cf69085737f0a44efcbdafc43f3ccfbb3d26ee41d85397a4ecb4a0113af5a |
|
MD5 | 3dc5d4ebed66a3ed48ae96863ffce740 |
|
BLAKE2b-256 | 450355e03dfaa974fa2dfe17c19ee129d5e354d70bd01f4bab77ff1685442e5e |
Hashes for pyjson5x-1.6.2-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25b4cb5fbe026b8ab6d9554cd14f5471ba8357c31821d675d5959ad4db4d36f |
|
MD5 | 0506f5d2a22c02b26ef5a0a5b012a52f |
|
BLAKE2b-256 | 099181784e91efad4576afaa6376d7cb1ec576bfaf03a1e2dbecb28cda868ed9 |
Hashes for pyjson5x-1.6.2-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e20eb2b27b7083b83a38fc6da3a86952fb701124f24799069cf8154a46fcc673 |
|
MD5 | b1172df55e5d8309ee36162c42487926 |
|
BLAKE2b-256 | d692daa2241998bfc75d2f1d416b6bfd11fca742a28a75b7b9276ba24949e217 |
Hashes for pyjson5x-1.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e32d4fc47ced71f75cfde98aa7d9d9193b159e011227f28ebf38df475839af92 |
|
MD5 | 5a660d41a28a05084a38b948ffba3ace |
|
BLAKE2b-256 | e131f4ecaf352f6f45fd9a13a4fab6638dfbd344a1b19786c0bdc05bd0f85380 |
Hashes for pyjson5x-1.6.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92a3077f9e18f3cdc0fbc7455a76c79c1ed2fa01400a39b0d02106e510f7d5d5 |
|
MD5 | 5383ce05f70bd3afbb030db5d8c7f068 |
|
BLAKE2b-256 | f36142cd93d7312f5e52646b7696568759fa399b5c35d6a5b9c93c12c8f80328 |
Hashes for pyjson5x-1.6.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 486cadb38056ef17f8ee3c8032ba853b755bdf30c468d37b450d8e5d6e2cecb4 |
|
MD5 | 33b7677fcf8ea8f0b2c5f60e422f7516 |
|
BLAKE2b-256 | 2770539c1b47af125339f94713a88c3541b2e4335746e2e93041a8f53d31aeff |
Hashes for pyjson5x-1.6.2-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d2fa883372717d91333caac8a481ee7f2f601c1c7de897d1979a217f2ce1d41 |
|
MD5 | 4bf183f0b3cc5d15f32641e6391c5cd1 |
|
BLAKE2b-256 | 8b7ea1a43b99723f5574fca6416df8e3bdb043dc74976cd8b6d0617684298f52 |
Hashes for pyjson5x-1.6.2-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f50a05b757071b30adc0051f59e5361b4c3077e7f1cedfdd7cf5536520681118 |
|
MD5 | 248c8ca935d713d05aa5cb18b6aa1f5f |
|
BLAKE2b-256 | 79fde522e814cc4c1ca4825ab0363af797fec0d3bdc2bacfa90d53b08e15d72a |
Hashes for pyjson5x-1.6.2-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a568bed2a0e4a27636f2e8e48ce874fba372d6c9b1542ff949f2eb601219b0e0 |
|
MD5 | fd457aad3faa7ebd5318521d4ed1c2cb |
|
BLAKE2b-256 | 35a69e11be620a01cebe86945d9b9fbc4bdf7ca9375130e2510803afbcf86b25 |
Hashes for pyjson5x-1.6.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f1591bf0c09c84523207b665bcb486c7c67264a1c553541000f4dde5c7ea483 |
|
MD5 | a827fd2fc8173aa08d45593983a0f588 |
|
BLAKE2b-256 | b0e5d20c53cde47e4d878f23dc2f71681b5b6f3fc3256151c7da7b09ebcc3d18 |
Hashes for pyjson5x-1.6.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25deb8948d2c09c346908ff06815ce5a4751c634a5e3b0e3adf9edfdc7f81f71 |
|
MD5 | 405fee676164e00a83e80200c6c80fd2 |
|
BLAKE2b-256 | f4891e0d5e635e4e33392cc752e404071e506269c2fcce8add23305c6bc8d526 |
Hashes for pyjson5x-1.6.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dcf9dcc142cccb2558736eac42d37677269ebe310e3aa6b4aa9ff0a7055036d |
|
MD5 | 1e811a6d46695129a25dca98c2438f46 |
|
BLAKE2b-256 | d300f7a0bedfe7da59ecb1510d00ccf7fae5984b231425fc0b7d17c4c35d9690 |
Hashes for pyjson5x-1.6.2-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cd4dc4ba32339f0d4f339a4be27f0d26a7f62396d7d491b980f02961fe1a4a0 |
|
MD5 | ad8c37e809b418d1390f84205c8b47af |
|
BLAKE2b-256 | c4107bdf15f71fa51e0d3302912516c9ddf14ea1c5ad8e1bee01c28f68046d16 |
Hashes for pyjson5x-1.6.2-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dadb4bdd98437935d1638ddef731d3a94ce7f4b849e15909dc3ce40809c41085 |
|
MD5 | aac9a99327a41cc7afd66f1b421e5646 |
|
BLAKE2b-256 | ea08ad8416e33ab7c2dad1389fdf698d05050e66c89194bcb3141dd3dda089b4 |
Hashes for pyjson5x-1.6.2-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f69468008ac5b59783af0a081d422cec9d2cc4733cbc7e19971c0cd9e54b178f |
|
MD5 | 3baa1604aec1086fedb626f7a38b7b86 |
|
BLAKE2b-256 | 54ec64c71a72e87d970fcc8d41b510c4cbd6eae38f7d485838aa006adfff0d13 |
Hashes for pyjson5x-1.6.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbaa1519445bf806e08cbfe4f2c1cc6f778194e0977a42b0fceacfcfd1855d5d |
|
MD5 | d234dc8876d52363320ba1c71774a0c5 |
|
BLAKE2b-256 | 2d288b76e8d158ba6c402619cd5dba25782d88d60c970ccc7e70309c91e656c4 |
Hashes for pyjson5x-1.6.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b753184ef3ac25ff277468ee4f9d7c523e7f2ac999d90dd8afeeabc2deded0ed |
|
MD5 | 7e2c825b4959c47e97501dadd8dae39d |
|
BLAKE2b-256 | 2279c4bc42583a9873de3f6e5c312dbb493cfe3b3857ac2c7dd8767b964e31af |
Hashes for pyjson5x-1.6.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba779616cb3badc35d8151c87342c2b2bdaa3216ca9293d34244f017bae9168b |
|
MD5 | e4218564b503025c1715a459d01d5d30 |
|
BLAKE2b-256 | a60bee74174634675af47b816e60d1727c2a7bcf34de62e08905de5226a0c08d |
Hashes for pyjson5x-1.6.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d038ce02d3dd4aab6fe9d22e4c02d817b571532ef109e59423be92e56fefd6b4 |
|
MD5 | 35311d1547cd66e792b16c4aa0297de9 |
|
BLAKE2b-256 | 48da55bd0d6bcf393bd2ed2b7b944e34c2ae3575a05256b00ab056ee2d3bc1ff |
Hashes for pyjson5x-1.6.2-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 349585ceae3f4fb447038a9f0bab96cb9a1bee78fafc8d0cb67d6ed8308e403a |
|
MD5 | 0125da39d083b52a82f79670a8651fc9 |
|
BLAKE2b-256 | 1d27d4f6097e9cbde09b165e553ded4db7104ad7c33e9a3ffd989b33c9847766 |
Hashes for pyjson5x-1.6.2-cp37-cp37m-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 023617b54586b9a44021d158f673669b48d011695d36088ccfc9a590b0b7232d |
|
MD5 | 56c38f32c10e973fa2004686418dec42 |
|
BLAKE2b-256 | 19b1ef88a69eb7a7220ae8fa2d480990abf5c19c756d92576e6b67583f542994 |
Hashes for pyjson5x-1.6.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42661d2a107dcce9ebee0aa381b83bb044caa8a77e1ee4200105cccdeae5e3fa |
|
MD5 | 7e0caa99fbad7753306e5c59be6d0b6c |
|
BLAKE2b-256 | 9ef7363d9c466618fba99e4f1a3404922b96d7b1c6805cef6a980ea699df2dba |
Hashes for pyjson5x-1.6.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5f545d5d26d2a3c7508c0f17f10cafa80a1c14c77c30b2b8fe997990562cbe4 |
|
MD5 | 638c0166be1a979ac88f99d12cf50db5 |
|
BLAKE2b-256 | 1ea35151ffebf05263279bb97e853ca3d8004ca93e46d83a4ad7cc8943a4fe38 |
Hashes for pyjson5x-1.6.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 981126c5f5c0e9f005f97ec0863a4b1dd2c1a58c9e4d5f5325904f318bb9fb9d |
|
MD5 | 99d89a97d3864edc9e7b14d72ed0dd48 |
|
BLAKE2b-256 | 57e487cd316458ade02c67064d3e94be75b6a955066a37aabf1cd34598c5bd1b |
Hashes for pyjson5x-1.6.2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c4fcefa7838cd6c9bd26186939689136fee5346c12d7247d1ca6bad80582f03 |
|
MD5 | 8073fd489681c378e82e479a312c7060 |
|
BLAKE2b-256 | 102dfa0037dea8b8a9cf8b7ba60081b45f0794fef2e0ab1c60041cc46564ae0e |
Hashes for pyjson5x-1.6.2-cp36-cp36m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b245933a2ef4d6f2c93b381e730bf9f868644cfe306f54c25b2d9c7f9890a32e |
|
MD5 | 158723de948c24f1ec30b30de5235d77 |
|
BLAKE2b-256 | bcfc1a1890fcb65513b68c232f7aa9b79fd64bc82b4ab5ae575b52e46c8b6881 |
Hashes for pyjson5x-1.6.2-cp36-cp36m-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 417955a92f314c55d68479595e1c790f5057ed8b6b26c619f85aaed040cef786 |
|
MD5 | be09848509d6363d6f2dcdb18b5e6b36 |
|
BLAKE2b-256 | 93741048920cd1e8fc24fb3c5de69f72a35ff3252ec30301c425e29ba175bde8 |
Hashes for pyjson5x-1.6.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6c87ec893adf17f704b556dea105f6e03feaa28add88d2663e1af2dc96fa87b |
|
MD5 | 9cccaa01077e0ffdd16d7836122cdede |
|
BLAKE2b-256 | a301707633087a6d116f51a0ea06de79550e98e180186c4896ef6d3da8475549 |
Hashes for pyjson5x-1.6.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50f5aacc910ffd83c9dfa4a6c063186e3676ee57160f9c7f9d3692e0cbe0dffc |
|
MD5 | 33e1a8bba301849ba00d6f48205a4c8a |
|
BLAKE2b-256 | b9c8e4646628adf5bbcb8c953de20b055d3312cc25749a63aad23f807e14bf0a |