serp-json
Serpentine's JSON library ([P] pure Serpentine, docs/libraries.md Wave 1) — the promoted
examples/json_parser.py north-star demo.
from serp_json import JVal, loads, dumps, describe, jnull, jbool, jint, jfloat, jstrloads(doc)parses a JSON document into aJValtree (kind-tagged dataclass);dumps(v)serializes it back. Object member order is preserved on both sides.- Escapes (
\uXXXXincl. surrogate pairs), nested values, and error positions are supported; malformed input raisesValueErrorwith a position message. - Integers beyond 64 bits overflow natively (documented int64 divergence).
- Pure Serpentine source: the same file compiles natively and imports under CPython.
Install into a Serpentine project with serp add serp-json.
Metadata
Release files for serp-json 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| serp_json-0.3.0.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| serp_json-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / serp_json-0.3.0.tar.gz
| Download URL | serp_json-0.3.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28a6ee7afd74a8d685fc92db8bb6cc459f135b645b07ef1fc3b8dc25df0b488d
|
|
BLAKE2b-256 checksum How to use checksums |
61e852b763c95938a47c1b13b6455255c7c94733ef4185425d0bec75c8ae5e7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / serp_json-0.3.0-py3-none-any.whl
| Download URL | serp_json-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fed8db5cc7284b40718ff3671cd8190dead1c73528585cec058d51b8171d564
|
|
BLAKE2b-256 checksum How to use checksums |
76bf9eed5a07633d5d981caecae7baba85d588c80ec6cb4575979d170d870918
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|