2 ms·
Hi HN - I’m the author of Jsonic. I built it after repeatedly running into friction with Python’s built-in json module when working with classes, dataclasses,
by orrbenyamini 9mo ago
Hi HN - I’m the author of Jsonic.
I built it after repeatedly running into friction with Python’s built-in json module when working with classes, dataclasses, nested objects, and type hints.
Jsonic focuses on:
- Zero-boilerplate serialization and deserialization
- Strict type validation with clear errors
- Natural support for dataclasses, enums, tuples, sets, nested objects etc.
- Optional field exclusion (e.g. hiding sensitive data)
- Extra features like transient fields definition, suport for __slots__ classes etc.
- Clean interop with Pydantic models
The goal is to make JSON round-tripping feel Pythonic and predictable without writing to_dict() / from_dict() everywhere.
I’d really appreciate feedback on the API design and tradeoffs.
- memoriuaysj 9mo agoall the quoted Python code on the medium post has broken formatting your comment above has the same broken formatting does not inspire confidence if you can't spot such obvious breakage
- orrbenyamini 9mo agoAppreciate the feedback, the formatting completely broke when pasting the code snippets into Medium. I fixed the article formatting and some of the feedback i got for it. Thanks for investing time reading !
- DonHopkins 9mo ago[dead]
- zahlman 9mo ago> after repeatedly running into friction Could you be more specific?